I found a Dual JList
sample code, but I need two columns in a Jlist
.
How to add two columns in a Jlist
?
I tried to use ListCellRenderer
, but I failed to add elements to the model.
Here's the code show in webpage with image.
I found a Dual JList
sample code, but I need two columns in a Jlist
.
How to add two columns in a Jlist
?
I tried to use ListCellRenderer
, but I failed to add elements to the model.
Here's the code show in webpage with image.
You mean something like this?
I'd start by having a read through How to Use Tables
The Main frame...
The Table cell renderer
The table model