I’m looking for a pattern to notify my JTable that the Data which are handled in the TableModel have changed. The Idea is that I got a global singleton TreeSet managing the Data. I receive randomly updates on the TreeSet.If any changes are made to the TreeSet the TableModelshould update itself by gathering the new information from the TreeSet.
Observer? Events + Listener? anything else?
Thank you for your help!
ps: A way to update the Model is already implemented and is NOT part of the Question.
You basically answered your own question, observer, event + listeners. A change from the usual: have you tried?