public final class ThreadUtilities extends Object
Constructor and Description |
---|
ThreadUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
invokeAndWait(Runnable runner)
Invoke a runnable object on the AWT event thread and wait for the
execution to finish.
|
static void |
invokeOnEventQueue(Runnable runnable)
Invoke a runnable object on the AWT event thread.
|
public static void invokeAndWait(Runnable runner)
runner
- Runnable capturing code to execute on the awt thread.public static void invokeOnEventQueue(Runnable runnable)
Runnable
object is simply executed.runnable
- Runnable capturing code to execute on the awt thread.