38 lines
745 B
Java
38 lines
745 B
Java
package updater;
|
|
|
|
import javax.swing.JFrame;
|
|
import javax.swing.JLabel;
|
|
import javax.swing.JProgressBar;
|
|
|
|
|
|
public class Window extends JFrame {
|
|
|
|
public static JProgressBar pb;
|
|
public static JLabel label;
|
|
|
|
public Window(){
|
|
|
|
setSize(350, 250);
|
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
setLayout(null);
|
|
|
|
// Label Title
|
|
label = new JLabel(" ... ", JLabel.CENTER);
|
|
label.setBounds(0, 40, 350, 14);
|
|
add(label);
|
|
|
|
// progress bar
|
|
pb = new JProgressBar(0,2000);
|
|
pb.setBounds(35,100,280,30);
|
|
pb.setValue(0);
|
|
pb.setStringPainted(true);
|
|
add(pb);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|