UsuarioDAO dao = new UsuarioDAO();
if(dao.checkLogin(txtLogin.getText(), txtSenha.getText())){
new ViewHome().setVisible(true);
this.dispose();
}else{
JOptionPane.showMessageDialog(null, "Senha incorreta!");
}
}
Nenhum comentário:
Postar um comentário