Java - Difference between SwingWorker and SwingUtilities.invokeLater()
- by Yatendra Goel
SwingWorker is used for the following purposes:
For running long-running tasks in a different thread so as to prevent the GUI from being unresponsive
For updating GUI with the results produced by the long-running task at the end of the task through done() method.
For updating GUI from time to time with the intermediate results produced and…