I have a GUI which consists of a toolbar with each button invoking different classes. The class I invoke consist of UI components which are displayed in the Internal frame of the main GUI. The Invoked class works as a separate thread and has to perform the following functions.
- Trigger a command to the client, so that the client starts sending the contents of a file.
- Receive the file contents here,filter it and add it to a JTable.
- Progress bar has to be displayed during the file contents transfer.
- Display the UI after adding it to the table.
I am new to Swing worker, so can some one help me to get how it works with my situation and the advantages of using Swing Worker and Invoke later function. I followed the examples in the oracle site and few other sites but I am not able to see how this works for my classes.