How to stop a JList from firing events when contents is updated?
Hi all, I'm currently trying to solve a problem with a JList. I've got an actionPerformed event applied to the JList (also tried the item updated event but it has the same effect), and whenever this event is fired, (i.e. the user makes a selection), something happens. Now, the problem is that when the list is being populated, it seems to fire the event too - thus creating problems for me.
Is there a way to stop the JList from firing the actionPerformed or itemStateChanged event when the contents is updated?
P.S. Question has also been asked here: How to stop a JList from firing events when contents is updated? - Java