diff --git a/src/main/java/LoginGUI.java b/src/main/java/LoginGUI.java index e18d2ea..5bc3739 100644 --- a/src/main/java/LoginGUI.java +++ b/src/main/java/LoginGUI.java @@ -55,6 +55,8 @@ public class LoginGUI extends JFrame implements ActionListener { if (authenticateUser(username, password)) { JOptionPane.showMessageDialog(this, "Login successful!"); // Perform actions after successful login + + dispose(); } else { JOptionPane.showMessageDialog(this, "Invalid username or password", "Login Error", JOptionPane.ERROR_MESSAGE); }