Public Methods | |
abstract Object | construct () |
Compute the value to be returned by the get method. More... | |
void | finished () |
Called on the event dispatching thread (not on the worker thread) after the construct method has returned. More... | |
void | interrupt () |
A new method that interrupts the worker thread. More... | |
Object | get () |
Return the value created by the construct method. More... | |
SwingWorker () | |
Start a thread that will call the construct method and then exit. More... | |
Protected Methods | |
synchronized Object | getValue () |
Get the value produced by the worker thread, or null if it hasn't been constructed yet. More... |
For instructions on using this class, see http://java.sun.com/products/jfc/swingdoc-current/threads2.html
|
Start a thread that will call the
|
|
Get the value produced by the worker thread, or null if it hasn't been constructed yet.
|
|
Compute the value to be returned by the
|
|
Called on the event dispatching thread (not on the worker thread) after the
|
|
A new method that interrupts the worker thread. Call this method to force the worker to abort what it's doing. |
|
Return the value created by the Returns null if either the constructing thread or the current thread was interrupted before a value was produced.
|