public class EDT
extends java.lang.Object
GuiJob
s or GuiRequest
s (thread-safe) in the event dispatch thread (EDT) of a graphical
user interface (GUI) from any other thread or the EDT itself.
execute(GuiJob)
to perform a GuiJob
or use execute(GuiRequest)
to perform a GuiRequest
.Modifier and Type | Method and Description |
---|---|
static void |
execute(GuiJob job)
Executes the specified job in the event dispatch thread of a graphical user interface.
|
static <T> T |
execute(GuiRequest<T> request)
Executes the specified request in the event dispatch thread of a graphical user interface.
|
static boolean |
isExecutedInEDT()
Indicates whether an action is executed in the event dispatch thread (EDT).
|
public static boolean isExecutedInEDT()
true
if it is executed in the EDT otherwise false
if it is executed in another thread than the EDTpublic static void execute(GuiJob job) throws java.lang.RuntimeException
job
- the jobjava.lang.RuntimeException
- public static <T> T execute(GuiRequest<T> request) throws java.lang.RuntimeException
request
- the requestnull
java.lang.RuntimeException
-