Browse Source

Added textfield for password input

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
fce141d40e
  1. 9
      src/main/java/LoginGUI.java

9
src/main/java/LoginGUI.java

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

Loading…
Cancel
Save