@java.lang.Deprecated(forRemoval = true) public abstract class SwingWorker extends java.lang.Thread
This is the 3rd version of SwingWorker (also known as SwingWorker 3), an abstract class that you subclass to perform GUI-related work in a dedicated thread. For instructions on and examples of using this class, see:
http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html Note that the API changed slightly in the 3rd version: You must now invoke start() on the SwingWorker after creating it.Fields inherited from class | Fields |
---|---|
class java.lang.Thread |
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY |
Type Params | Return Type | Name and description |
---|---|---|
|
public abstract java.lang.Object |
construct() Compute the value to be returned by the get method. |
|
public void |
finished() Called on the event dispatching thread (not on the worker thread) after the construct method has returned. |
|
public java.lang.Object |
get() Return the value created by the construct method. |
|
public void |
run() Start a thread that will call the construct method and then
exit. |
|
public void |
run() |
Methods inherited from class | Name |
---|---|
class java.lang.Thread |
java.lang.Thread#getName(), java.lang.Thread#getStackTrace(), java.lang.Thread#run(), java.lang.Thread#toString(), java.lang.Thread#currentThread(), java.lang.Thread#onSpinWait(), java.lang.Thread#join(long), java.lang.Thread#join(), java.lang.Thread#join(long, int), java.lang.Thread#start(), java.lang.Thread#getThreadGroup(), java.lang.Thread#setContextClassLoader(java.lang.ClassLoader), java.lang.Thread#holdsLock(java.lang.Object), java.lang.Thread#checkAccess(), java.lang.Thread#dumpStack(), java.lang.Thread#setPriority(int), java.lang.Thread#setDaemon(boolean), java.lang.Thread#sleep(long, int), java.lang.Thread#sleep(long), java.lang.Thread#isDaemon(), java.lang.Thread#getPriority(), java.lang.Thread#getContextClassLoader(), java.lang.Thread#resume(), java.lang.Thread#interrupted(), java.lang.Thread#interrupt(), java.lang.Thread#activeCount(), java.lang.Thread#enumerate([Ljava.lang.Thread;), java.lang.Thread#isAlive(), java.lang.Thread#setDefaultUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler), java.lang.Thread#getUncaughtExceptionHandler(), java.lang.Thread#yield(), java.lang.Thread#stop(), java.lang.Thread#isInterrupted(), java.lang.Thread#suspend(), java.lang.Thread#setName(java.lang.String), java.lang.Thread#countStackFrames(), java.lang.Thread#getAllStackTraces(), java.lang.Thread#getId(), java.lang.Thread#getState(), java.lang.Thread#getDefaultUncaughtExceptionHandler(), java.lang.Thread#setUncaughtExceptionHandler(java.lang.Thread$UncaughtExceptionHandler), java.lang.Thread#wait(long, int), java.lang.Thread#wait(), java.lang.Thread#wait(long), java.lang.Thread#equals(java.lang.Object), java.lang.Thread#hashCode(), java.lang.Thread#getClass(), java.lang.Thread#notify(), java.lang.Thread#notifyAll() |
Compute the value to be returned by the get
method.
Called on the event dispatching thread (not on the worker thread) after
the construct
method has returned.
Return the value created by the construct
method. Returns
null if either the constructing thread or the current thread was
interrupted before a value was produced.
construct
method Start a thread that will call the construct
method and then
exit.