Files
corejava/corejava第9版/v2ch06/progressBar/ProgressBarTest.java
T
2019-05-22 19:49:35 +08:00

27 lines
640 B
Java

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);
}
});
}
}