diff --git a/src/main/java/LoginGUI.java b/src/main/java/LoginGUI.java index 31fc2f2..b4e90a2 100644 --- a/src/main/java/LoginGUI.java +++ b/src/main/java/LoginGUI.java @@ -4,6 +4,7 @@ import java.awt.event.ActionListener; import java.util.List; public class LoginGUI extends JFrame implements ActionListener { + private JTextField usernameField; public LoginGUI() { setTitle("Login"); @@ -11,6 +12,13 @@ public class LoginGUI extends JFrame implements ActionListener { setDefaultCloseOperation(EXIT_ON_CLOSE); setLayout(null); + JLabel usernameLabel = new JLabel("Username:"); + usernameLabel.setBounds(20, 20, 80, 25); + add(usernameLabel); + + usernameField = new JTextField(); + usernameField.setBounds(100, 20, 160, 25); + add(usernameField); }