segunda-feira, 7 de agosto de 2017

Botão Logar

 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