Java Utililty Methods Swing UI Thread Event

List of utility methods to do Swing UI Thread Event

Description

The list of methods to do Swing UI Thread Event are organized into topic(s).

Method

voidtoEDT(Runnable r, boolean wait)
to EDT
if (wait)
    waitOnEDT(r);
else
    toEDT(r);
voidwaitOnEDT(Runnable r)
wait On EDT
if (SwingUtilities.isEventDispatchThread()) {
    r.run();
} else {
    try {
        SwingUtilities.invokeAndWait(r);
    } catch (InvocationTargetException e) {
        e.printStackTrace();
    } catch (InterruptedException e) {
...