Browse Source

Added action button for login window

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
2fe0eb289b
  1. 6
      src/main/java/LoginGUI.java

6
src/main/java/LoginGUI.java

@ -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

Loading…
Cancel
Save