|
@ -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; |
|
|
|
|
|
|
|
|
private JTextField usernameField, passwordField; |
|
|
|
|
|
|
|
|
public SignUpGUI() { |
|
|
public SignUpGUI() { |
|
|
setTitle("Sign Up"); |
|
|
setTitle("Sign Up"); |
|
@ -19,6 +19,14 @@ public class SignUpGUI extends JFrame implements ActionListener { |
|
|
usernameField = new JTextField(); |
|
|
usernameField = new JTextField(); |
|
|
usernameField.setBounds(100, 20, 160, 25); |
|
|
usernameField.setBounds(100, 20, 160, 25); |
|
|
add(usernameField); |
|
|
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 |
|
|
@Override |
|
|