my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Can you add Objects to A JList? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can you add Objects to A JList?" Watch "Can you add Objects to A JList?" New topic
Author

Can you add Objects to A JList?

joe vasher
Ranch Hand

Joined: Nov 06, 2009
Posts: 37
Is there a way to have a jlist work with Objects? I noticed there is no addElement for a jlist. (Scratchin head)
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
use the model - DefaultListModel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you add Objects to A JList?
 
Similar Threads
Drag and Drop from JList to JTree
JLIST Store and retreive data to Properties
Custom JList Rendering
JList selection to int not working
ListSelectionListener in JTable