How to update only certain items in a list when using MVC?
Posted
by
Eugen
on Stack Overflow
See other posts from Stack Overflow
or by Eugen
Published on 2012-09-16T15:36:01Z
Indexed on
2012/09/16
15:37 UTC
Read the original article
Hit count: 223
I'm building a GUI that includes a list with quite a lot of items. I allow the user to add/delete/edit those items.
Up until now my update method called in the controller implied an entire JList reset (with its obvious performance issues). Now that there are hundreds of items available, updating the entire list is not fezable any longer.
Does anyone know of a tutorial or can share an example (I haven't found any to suit my needs so far) in which the JList is updated something like JList.update(startIndex, endIndex);?
Thanks for taking the time to answer.
© Stack Overflow or respective owner