Add Window.java

main
Michal 2024-05-23 14:59:47 +02:00
parent a16f671630
commit 4656281676
1 changed files with 37 additions and 0 deletions

37
Window.java Normal file
View File

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