I've tried everything and i cant get with the answer, there is not much topics talking about it.
Here the escenario:
Once the user run the app, 2 FrameViews display. The main frame and the login. Whenever if the user exist, the login frameview must be close and let me edit the main_frame.
But i cannot close the login frameview. Dispose doesnt exist, close neither. What do i have to do?
the login form is name
demo
and the main_frame
main_frame
Suggestions?
Update
HERE the code where the login login must be close
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
String pass = this.jTextField1.getText();
String user = this.jTextField2.getText();
boolean login = db.Qboolean(new String[]{
"SELECT Id_User FROM login WHERE UserName = ? AND Pass = ?",
pass +","+user,
});
if(login)
//what do i have to use here to close it!!!
else
Logs.Mensaje("No se pudo :(");
}