Browse Source

Added textfield for username input

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
061af6313f
  1. 8
      src/main/java/LoginGUI.java

8
src/main/java/LoginGUI.java

@ -4,6 +4,7 @@ import java.awt.event.ActionListener;
import java.util.List; import java.util.List;
public class LoginGUI extends JFrame implements ActionListener { public class LoginGUI extends JFrame implements ActionListener {
private JTextField usernameField;
public LoginGUI() { public LoginGUI() {
setTitle("Login"); setTitle("Login");
@ -11,6 +12,13 @@ public class LoginGUI extends JFrame implements ActionListener {
setDefaultCloseOperation(EXIT_ON_CLOSE); setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(null); 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);
} }

Loading…
Cancel
Save