|
|
@ -6,6 +6,7 @@ import java.util.List; |
|
|
|
public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
private JTextField usernameField; |
|
|
|
private JPasswordField passwordField; |
|
|
|
private JButton loginButton; |
|
|
|
|
|
|
|
public LoginGUI() { |
|
|
|
setTitle("Login"); |
|
|
@ -29,6 +30,11 @@ public class LoginGUI extends JFrame implements ActionListener { |
|
|
|
passwordField.setBounds(100, 50, 160, 25); |
|
|
|
add(passwordField); |
|
|
|
|
|
|
|
loginButton = new JButton("Login"); |
|
|
|
loginButton.setBounds(100, 90, 100, 25); |
|
|
|
loginButton.addActionListener(this); |
|
|
|
add(loginButton); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|