Should I use a
SwingWorker
or a normalThread
or something else of the kind?
SwingWorker
would be the optimal way, since it ensures that updates to the GUI are performed on the Event Dispatch Thread. Having said that, it is also possible to use a Thread
, just so long as you ensure the GUI is updated on the EDT.