|
|
@ -5,6 +5,7 @@ import java.util.List; |
|
|
|
|
|
|
|
public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
private JTextField usernameField; |
|
|
|
private JPasswordField passwordField; |
|
|
|
|
|
|
|
public LoginGUI() { |
|
|
|
setTitle("Login"); |
|
|
@ -20,6 +21,14 @@ public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
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 |
|
|
|