Nico B 3 years ago
parent
commit
2cccfa6721
  1. BIN
      GameProject.zip
  2. 2
      GameProject/src/ui/LoginWindow.java

BIN
GameProject.zip

2
GameProject/src/ui/LoginWindow.java

@ -46,7 +46,7 @@ public class LoginWindow implements ActionListener{
if(ae.getSource() == this.loginButton) {
if (loginText.getText().equals("admin") && passwordText.getText().equals("Password123!")) {
JOptionPane.showMessageDialog(frame, "Login erfolgreich", "Login Meldung", JOptionPane.INFORMATION_MESSAGE);
frame.setVisible(false);
System.exit(0);
} else {
JOptionPane.showMessageDialog(frame, "Login fehlgeschlagen", "Login Meldung", JOptionPane.ERROR_MESSAGE);

Loading…
Cancel
Save