private void btnLogarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLogarActionPerformed

        if (!txtUsuario.getText().isEmpty() && !txtSenha.getText().isEmpty()) {
            Validacoes valida = new Validacoes();
            boolean valido = valida.isValidLogin(txtUsuario.getText(), txtSenha.getText());
            if (valido == true) {
                Principal principal = new Principal();
                principal.setVisible(true);
                this.dispose();
            }
        } else {
            JOptionPane.showMessageDialog(null, "Preencha todos os campos para efetuar o login!", "Atenção", JOptionPane.WARNING_MESSAGE);
            txtUsuario.requestFocus();
        }

    }//GEN-LAST:event_btnLogarActionPerformed