diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-11-21 23:42:22 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-11-21 23:42:22 +0530 |
commit | 9a423e939273fcfe805cde22bb8c8c8a74655702 (patch) | |
tree | 12fca7dd2413af2d57b25c1f23b90d7db222c1fe /src/UI/Components/LoginPanel.java | |
parent | c82c062ed61879a1f8e32d5ec53eb02b1e0fb628 (diff) |
Diffstat (limited to 'src/UI/Components/LoginPanel.java')
-rw-r--r-- | src/UI/Components/LoginPanel.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/UI/Components/LoginPanel.java b/src/UI/Components/LoginPanel.java index e79326b..9950706 100644 --- a/src/UI/Components/LoginPanel.java +++ b/src/UI/Components/LoginPanel.java @@ -9,12 +9,16 @@ import java.awt.*; public class LoginPanel extends JPanel { public JButton loginButton; + public JButton signUpButton; + public JLabel statusLabel; private SettingsPopupWindow settingsPopupWindow; public InputBox usernameInput; public InputBox passwordInput; public LoginPanel() { + statusLabel = new JLabel(); + usernameInput = new InputBox("Username:"); usernameInput.setBorder(new EmptyBorder(140, 100, 0, 100)); this.add(usernameInput); @@ -24,7 +28,6 @@ public class LoginPanel extends JPanel { this.add(passwordInput); JPanel buttonPanel = new JPanel(); - buttonPanel.add(Box.createRigidArea(new Dimension(140, 0))); JButton settingsButton = new JButton("Settings"); settingsButton.addActionListener(_ -> { @@ -42,6 +45,11 @@ public class LoginPanel extends JPanel { }); buttonPanel.add(settingsButton); + buttonPanel.add(Box.createRigidArea(new Dimension(90, 0))); + + signUpButton = new JButton("Sign Up"); + buttonPanel.add(signUpButton); + buttonPanel.add(Box.createRigidArea(new Dimension(10, 0))); loginButton = new JButton("Login"); @@ -50,6 +58,9 @@ public class LoginPanel extends JPanel { buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS)); this.add(buttonPanel); + this.add(Box.createRigidArea(new Dimension(600, 0))); + this.add(statusLabel); + this.setMaximumSize(new Dimension(350, 200)); } } |