I currently have an application with a gui (see attached picture) containing some JLists of which the one of them is made for reporting server reports. The Jlists are initialized with 3 DefaultListModels contained by a model class (that keeps the state of the app). The problem is updating the JList with server data gathered in a seperate thread, which simple wont work no matter what i try it seems.
Adding items to the Jlist works fine by manipulating the DefaultListModel instance referenced by the JList. However as soon as I start the server listening thread it doesnt work anymore. I have tried using the SwingUtilities.invokeLater
method and using a property change listener approach where I fire a property cahnge event and take care of things in the propertyChanged method, which works for the status panel (which is updated by the listen thread - see picture). I can't figure out why it wont update the gui, I mean the DefaultListModel object is updated with a lot of elements, but nothing shows. I really hope someone can help, this is truly a pain in the ass.