Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating a JList  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!