diff --git a/GameProject.zip b/GameProject.zip new file mode 100644 index 0000000..77fdded Binary files /dev/null and b/GameProject.zip differ diff --git a/GameProject/src/ui/LoginWindow.java b/GameProject/src/ui/LoginWindow.java index 94c8280..1ef800c 100644 --- a/GameProject/src/ui/LoginWindow.java +++ b/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);