Files
corejava/corejava第10版/v2ch10/progressBar/ProgressBarTest.java
T
2019-05-22 19:31:49 +08:00

24 lines
561 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.05 2012-05-10
* @author Cay Horstmann
*/
public class ProgressBarTest
{
public static void main(String[] args)
{
EventQueue.invokeLater(() ->
{
JFrame frame = new ProgressBarFrame();
frame.setTitle("ProgressBarTest");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
});
}
}