I'm having a slight issue, and I can't figure it out. I want for my code to check if the email and password matches and then close the window. This the action:
btnLogin.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
boolean status = Email_Verification.email_validation(email_text.getText().toString().trim());
if (status) {
lbl_inco_email.setText(null);
} else {
lbl_inco_email.setText("Please enter a valid email");
}
boolean stat = Password_Verification.password_validation(password_Field.getPassword().toString());
if (stat) {
lbl_inco_pwd.setText(null);
} else {
lbl_inco_pwd.setText("Please enter a valid Password");
}
/* Exit and redirect to the main application if the email/pwd matches the database */
/** MAIN__WINDOW __EXIT__ONCLICK__ = new MAIN__WINDOW();
__EXIT__ONCLICK__.setVisible(true); */
}
});