aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Updating a JList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Updating a JList" Watch "Updating a JList" New topic
Author

Updating a JList

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
What is the proper method of updating a JList. I have a custom list model based on AbstractListModel. I'm using JDK 1.3 and I see it has a ListDataListener interface. Is this what I need to use? I however do not see an addListDataListener method in JList. For now I've been using setModel to set the model again when it changes but is this the proper or best way to do it?
Thanks,
Frank
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
A similar question is answered here.

"I'm not back." - Bill Harding, Twister
 
jQuery in Action, 2nd edition
 
subject: Updating a JList