Browse Source

added a textfield for password to signup GUI

remotes/origin/feature/client/make-input-field-buttons-interactive
Richard Schmidt 11 months ago
parent
commit
6986de2c3d
  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;
private JTextField usernameField, passwordField;
public SignUpGUI() {
setTitle("Sign Up");
@ -19,6 +19,14 @@ public class SignUpGUI extends JFrame implements ActionListener {
usernameField = new JTextField();
usernameField.setBounds(100, 20, 160, 25);
add(usernameField);
JLabel passwordLabel = new JLabel("Password:");
passwordLabel.setBounds(20, 50, 80, 25);
add(passwordLabel);
passwordField = new JPasswordField();
passwordField.setBounds(100, 50, 160, 25);
add(passwordField);
}
@Override

Loading…
Cancel
Save