public class SwingUtilities2
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
SwingUtilities2()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static void |
invokeAndWait(java.lang.Runnable runnable)
Calls
SwingUtilities.invokeAndWait(Runnable) if not on the EDT or
calls the Runnable directly if on the EDT. |
static void |
invokeLater(java.lang.Runnable runnable)
Calls
SwingUtilities.invokeLater(Runnable) if not on the EDT or
calls the Runnable directly if on the EDT. |
private SwingUtilities2()
public static void invokeAndWait(@NotNull java.lang.Runnable runnable)
SwingUtilities.invokeAndWait(Runnable)
if not on the EDT or
calls the Runnable
directly if on the EDT.runnable
- the runnable to callpublic static void invokeLater(@NotNull java.lang.Runnable runnable)
SwingUtilities.invokeLater(Runnable)
if not on the EDT or
calls the Runnable
directly if on the EDT.runnable
- the runnable to call