Using SwingWorker
Home ] Up ] The Problem ] Update Swing Only From The EDT ] Avoid Too Much Work in The EDT ] Providing Visual Feedback ] Using a Worker Thread ] [ Using SwingWorker ]

 

Old SwingWorker
An Old SwingWorker Example
New SwingWorker
A New SwingWorker Example

 

Some Sun Java folks came up with a class that they called SwingWorker, to illustrate good practice using a worker thread model.

In this section, we'll show some examples of the use of SwingWorker.

Note that a version of the SwingWorker class was included in Java 6.0 (javax.swing.SwingWorker); it was not the same as the original SwingWorker.  
Before 6.0, you had to download it separately.

 
The page was last updated February 19, 2008