JList with multiple columns
Quick question.
Is it possible to create a JList where each entry of data is two column long? Specifically, I want a word and then a checkbox associated with that word in the next column.
I was hoping to avoid JTable for this. If I have to use JTable, is there a way to hide the row and column lines? Those lines are very unappealing for what I am trying to accomplish.
Information and links to tutorials or whatever would help me greatly.
Thanks in advance.
Re: JList with multiple columns
You could use a custom renderer with your JList: How to Use Lists (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
That's the way I would probably go. It's actually pretty easy, and I think it's more specific to the functionality that you want.
If you did go the JTable way, you can simply setShowHorizontalLines and setShowVerticalLines: JTable (Java Platform SE 6)
Re: JList with multiple columns