I have a GUI that has a JList and a JListModel and then I have another thread which performs an action which updates the JListModel if it needs to.
Now the problem is that the JList is not updated consistently everytime.
I have looked up this issue and it is because the GUI should be always updated from the EDT thread.
How can I refresh the GUI JList from another thread by calling it within the EDT?
The same thread also updates the contents of a JLabel on the same GUI and this is updated everytime consistently, so is this really the problem?