Browse Source

added textfield for username to signup GUI

remotes/origin/feature/client/make-input-field-buttons-interactive
Richard Schmidt 11 months ago
parent
commit
ff5fbad1ad
  1. 10
      src/main/java/SignUpGUI.java

10
src/main/java/SignUpGUI.java

@ -4,7 +4,7 @@ import java.awt.event.ActionListener;
import java.util.UUID;
public class SignUpGUI extends JFrame implements ActionListener {
private JTextField usernameField;
public SignUpGUI() {
setTitle("Sign Up");
@ -12,7 +12,13 @@ public class SignUpGUI 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);
}
@Override

Loading…
Cancel
Save