package progressBar; import java.awt.*; import javax.swing.*; /** * This program demonstrates the use of a progress bar to monitor the progress of a thread. * @version 1.04 2007-08-01 * @author Cay Horstmann */ public class ProgressBarTest { public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { JFrame frame = new ProgressBarFrame(); frame.setTitle("ProgressBarTest"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }); } }