public class SwingUtil extends Object
SwingUtilities class.SwingUtilities| Constructor and Description |
|---|
SwingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
invokeAndWait(Runnable runnable)
Invokes the given Runnable in the AWT event dispatching thread,
and waits for it to finish.
|
static void |
invokeLater(Runnable runnable)
Invokes the given Runnable in the AWT event dispatching thread, not
necessarily right away.
|
public static void invokeAndWait(Runnable runnable) throws InterruptedException, InvocationTargetException
runnable - the Runnable to be executed.InterruptedExceptionInvocationTargetExceptionSwingUtilities.invokeAndWait(Runnable)public static void invokeLater(Runnable runnable)
runnable - the Runnable to be executed.SwingUtilities.invokeLater(Runnable)Copyright © 2018. All rights reserved.