Add Window.java
parent
a16f671630
commit
4656281676
|
|
@ -0,0 +1,37 @@
|
||||||
|
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue