Java Swing Updating JList -


I would like to know if there is any way that I can update a jailist after adding or updating the user. Type it after a user. Is there any way that I can write a standardized method for updating performance based on the order of objects in an array or vector, and when the user removes or adds an object from the array, which is JList based?

Thank you.

Updates should be created in the modell, not the array used to make the model.

However, if you want to completely refresh the list with new items or want to change the order of the objects, you create a new DefaultListModel and setModel (...) the method of JList Use to update views.


Comments