Forums Register Login

Can you add Objects to A JList?

+Pie Number of slices to send: Send
Is there a way to have a jlist work with Objects? I noticed there is no addElement for a jlist. (Scratchin head)
2
+Pie Number of slices to send: Send
use the model - DefaultListModel
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 764 times.
Similar Threads
Custom JList Rendering
JLIST Store and retreive data to Properties
ListSelectionListener in JTable
JList selection to int not working
Drag and Drop from JList to JTree
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:34:41.