List of utility methods to do Swing UI Thread Event
void | toEDT(Runnable r, boolean wait) to EDT if (wait) waitOnEDT(r); else toEDT(r); |
void | waitOnEDT(Runnable r) wait On EDT if (SwingUtilities.isEventDispatchThread()) { r.run(); } else { try { SwingUtilities.invokeAndWait(r); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (InterruptedException e) { ... |