public abstract class SwingClosure
extends java.lang.Object
| Constructor and Description |
|---|
SwingClosure()
Creates a SwingClosure that will use SwingUtilities.invokeAndWait(..)
if the current thread is not the Swing thread.
|
SwingClosure(boolean useInvokeLater) |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
This implementation ensures that the code in the runImpl(..)
method is executed on the Swing/AWT event thread.
|
protected abstract void |
runImpl()
Subclasses should override this method to provide the closure
implementation.
|
public SwingClosure()
public SwingClosure(boolean useInvokeLater)
useInvokeLater - Specify true if SwingClosure
should use SwingUtilities.invokeLater(..). Specify
false if it should use SwingUtilities.invokeAndWait(..).public final void run()
throws ClosureException
ClosureException.ClosureExceptionprotected abstract void runImpl()
throws java.lang.Exception
ClosureException.java.lang.Exception