January 2014
Intermediate to advanced
736 pages
70h 43m
English
Class SwingWorker (in package javax.swing) perform long-running tasks in a worker thread and to update Swing components from the event dispatch thread based on the tasks’ results. SwingWorker implements the Runnable interface, meaning that a SwingWorker object can be scheduled to execute in a separate thread. The SwingWorker class provides several methods to simplify performing tasks in a worker thread and making the results available for display in a GUI. Some common SwingWorker methods are described in Fig. J.14. Class SwingWorker is similar to class AsyncTask, which is used frequently in Android apps.
Fig. J.14 | Commonly ...
Read now
Unlock full access