SwingWorker - The Background Task Worker

This chapter provides tutorial notes and example codes on the java.swing.SwingWorker class. Topics include quick introduction of java.swing.SwingWorker; Example programs for catching final result, publishing intermediate values, updating progress property value, and connecting to JProgressBar components.

What Is SwingWorker Class?

SwingWorker Example using done() Method

SwingWorker Example using publish() Method

SwingWorker Example using "progress" Property

SwingWorker Example using JProgressBar

Conclusion:

Table of Contents

 About This Book

 Introduction of Java Swing Package

 Graphics Environment of the Local System

 JFrame - Main Frame Class

 JLabel - Swing Label Class

 JButton - Swing Button Class

 JRadioButton - Swing Radio Button Class

 JTextField - Swing Text Field Class

 Menu Bar, Menus, Menu Items and Listeners

 Creating Internal Frames inside the Main Frame

 Layout of Components in a Container

 LookAndFeel and UIManager

 Option Dialog Boxes

 JEditorPane - The Editor Pane Class

SwingWorker - The Background Task Worker

 References

 PDF Printing Version