2728293031323334353637
while (!finished && thread.isAlive()) { SwingUtilities.invokeLater( new Thread(new Runnable() { @Override public void run() { dlg.update(); } })); try { sleep(10); } catch (Exception ignore) {} }