Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to upldate just one item in a list  RSS feed

 
Titus Abraham
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

i have a jlist which i have implemented the ListCellRenderer .this list consists of images and other stuff whcih is quite expensive for continuous updates.. just like any messenger contact list my list has statuses changing. i can do an update on the list but thats quite an expensive operation. any clues on how to update one item in the list ?

best regards,
Titus


 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You objects that are represented in the list should belong to a ListModel and then you can iterator over the list model, get the item you need to update, and make your changes. The model will then update the view for you.
 
Rob Camick
Ranch Hand
Posts: 2752
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any clues on how to update one item in the list ?




 
Titus Abraham
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all.. i will try it out now and return back
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!