As I said, i have a java desktop application. The interface contains a JList and I modify the content of this list in some custom listeners that i implemented.
One of the listeners iterates through all the items in the list and performs some operations that may take a while. I would like to show the user the item that I am currently at. For starters, I just tried iterating through the elements in the list and just setting the selected index and then calling repaint (i do these 2 operations for each item). What happens is that there is no change in the interface during this iteration until the end, when the last item does get marked as selected.
Does anyone have I hint as to why this might be happening and how to show a change in selection in A JList?
Thank you, Mihaela