SwingWorker und Event Dispatch Thread (EDT)
System.out.println("TID=" + Thread.currentThread().getId() + " (main)"); final SwingWorker x = new SwingWorker() { @Override protected String doInBackground() throws Exception { final long tid = Thread.currentThread().getId(); System.out.println("TID=" + tid + "…