Browse Source

added a textfield for birthday to signup GUI

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

11
src/main/java/SignUpGUI.java

@ -4,7 +4,7 @@ import java.awt.event.ActionListener;
import java.util.UUID; import java.util.UUID;
public class SignUpGUI extends JFrame implements ActionListener { public class SignUpGUI extends JFrame implements ActionListener {
private JTextField usernameField, passwordField;
private JTextField usernameField, passwordField, birthdayField;
public SignUpGUI() { public SignUpGUI() {
setTitle("Sign Up"); setTitle("Sign Up");
@ -27,6 +27,15 @@ public class SignUpGUI extends JFrame implements ActionListener {
passwordField = new JPasswordField(); passwordField = new JPasswordField();
passwordField.setBounds(100, 50, 160, 25); passwordField.setBounds(100, 50, 160, 25);
add(passwordField); add(passwordField);
JLabel birthdayLabel = new JLabel("Birthday:");
birthdayLabel.setBounds(20, 80, 80, 25);
add(birthdayLabel);
birthdayField = new JTextField();
birthdayField.setBounds(100, 80, 160, 25);
add(birthdayField);
} }
@Override @Override

Loading…
Cancel
Save