public class SwingUtilities2
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
invokeAndWait(@NotNull 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(@NotNull java.lang.Runnable runnable)
Calls
SwingUtilities.invokeLater(Runnable) if not on the EDT or
calls the Runnable directly if on the EDT. |
public static void invokeAndWait(@NotNull @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 @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