|Modifier and Type||Field and Description|
|Modifier and Type||Method and Description|
Executes the given runnable on the AWT-EDT and return
public static final AWTEDTExecutor singleton
public void invoke(boolean wait, Runnable r)
Otherwise execute the given runnable on the current-thread and return
This implies that the given tree-lock is being hold by the current-thread.
Otherwise the runnable is not executed and
false is returned.
treeLock- representing the AWT-tree-lock, i.e.
allowOnNonEDT- allow execution on non AWT-EDT in case current thread is not AWT-EDT and the tree-lock is being hold
wait- if true method waits until
Runnable.run()is completed, otherwise don't wait.
Runnableto be executed.
Runnablehas been issued for execution, otherwise