This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Updating a JList" Watch "Updating a JList" New topic

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?
Jim Yingst

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

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: Updating a JList
It's not a secret anymore!