Hello guys, i am working on an application that requires a login. The problem is that after logging in with a correct user id and password the login form (LoginGui) is suppose to exit and the main window(MainWindowGui) will appear, but the login form even though it disappears, it still appears imbedded in any other form that later comes up. This is the portion of the code that exits the loginform and calls the main window.
. . . if (isPasswordCorrect(input)) { setVisible(false); MainWindowGui(); } else { JOptionPane.showMessageDialog(null, "Invalid password. Try again.", "Error Message", JOptionPane.ERROR_MESSAGE); } . . .
kinldy advice