public final class UIThreadsUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
executeInSwingThread(java.lang.Runnable code)
Execute code in swing thread only.
|
static void |
mustBeSwingThread()
Check if current thread is swing thread, and report error in log if it's
not true.
|
static void |
mustNotBeSwingThread()
Check if current thread is NOT swing thread, and report error in log if
it's not true.
|
static <T> T |
returnResultFromSwingThread(java.util.function.Supplier<T> s) |
public static void executeInSwingThread(java.lang.Runnable code)
public static <T> T returnResultFromSwingThread(java.util.function.Supplier<T> s)
public static void mustBeSwingThread()
public static void mustNotBeSwingThread()