Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating a JList

 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A similar question is answered here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic