From 4656281676f5537865e54cd81e1e9ad73c3c77c7 Mon Sep 17 00:00:00 2001 From: Michal Date: Thu, 23 May 2024 14:59:47 +0200 Subject: [PATCH] Add Window.java --- Window.java | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Window.java diff --git a/Window.java b/Window.java new file mode 100644 index 0000000..9b9df5a --- /dev/null +++ b/Window.java @@ -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); + + } + + + +}