How to notify the completion of a process in SwingWorker to another class
I have an application in which I have an action class (GUI) that brings up a table (another class) with related data. Now the data for the table loaded from DB being too huge, needs to be done in a SwingWorker (doInBackground method). The table class is inherited by a number of other classes and has various other functions.
If I do some action in the GUI (say click on a button), it invokes a method in the corresponding table class and in here the SwingWorker does all the loading. Once loading is done, I need to notify the GUI class of the same to update some related gui. Any suggestions of how to connect from the done() method of SwingWorker in one class (say Class1) to another class (say Class2) is appreciated.