aboutsummaryrefslogtreecommitdiff
path: root/src/UI/SettingsPopupWindow.java
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-16 02:16:16 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-16 02:16:16 +0530
commitda6b366397aa15e2686840c1d9ffa5dae5d49d2a (patch)
treea53bc42092a564bfbf66a67b70e3aa9cb8689798 /src/UI/SettingsPopupWindow.java
First Commit
Diffstat (limited to 'src/UI/SettingsPopupWindow.java')
-rw-r--r--src/UI/SettingsPopupWindow.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/UI/SettingsPopupWindow.java b/src/UI/SettingsPopupWindow.java
new file mode 100644
index 0000000..6c962f0
--- /dev/null
+++ b/src/UI/SettingsPopupWindow.java
@@ -0,0 +1,36 @@
+package UI;
+
+import UI.Components.InputBox;
+
+import javax.swing.*;
+import javax.swing.border.EmptyBorder;
+import java.awt.*;
+
+public class SettingsPopupWindow extends JFrame {
+ public InputBox hostnameInput;
+ public InputBox portInput;
+ public JButton saveButton;
+
+ public SettingsPopupWindow() {
+ this.setTitle("Settings - Library Management System");
+ this.setSize(350, 200);
+ this.setResizable(false);
+ this.setLocationRelativeTo(null);
+
+ this.hostnameInput = new InputBox("Hostname:");
+ this.hostnameInput.setBorder(new EmptyBorder(0, 10, 0, 10));
+ this.add(this.hostnameInput);
+
+ this.portInput = new InputBox("PORT:");
+ this.portInput.setBorder(new EmptyBorder(0, 10, 0, 10));
+ this.add(this.portInput);
+
+ saveButton = new JButton("Save");
+ JPanel buttonPanel = new JPanel();
+ buttonPanel.setBorder(new EmptyBorder(0, 0, 0, 12));
+ buttonPanel.add(saveButton);
+ this.add(buttonPanel);
+
+ this.setLayout(new FlowLayout(FlowLayout.TRAILING));
+ }
+}