A little example how Swing works with SwingWorker.