private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        if(!jTextField1.getText().equals("")&& !jPasswordField1.getText().equals("")){
        try {
            GestorOperadores go = new GestorOperadores();

            String usuario = jTextField1.getText();
            Integer id = Integer.parseInt(usuario);
            String contr = jPasswordField1.getText();

            Operador existe = go.validarUsuario(id,contr);
            
            if(existe!=null){
                Principal prin = new Principal();
                prin.setVisible(true);
                dispose();
            } 
            else 
                if(existe==null){
                JOptionPane.showMessageDialog(null,"Usuario y/o Contraseña Incorrecta. Verifique e ingrese nuevamente");
            }
            
        } catch (DateAccessException ex) {
            System.out.println(ex);
        }
        }else
                if(jTextField1.getText().equals("") || jPasswordField1.getText().equals("")){
                JOptionPane.showMessageDialog(null,"Por favor, llene ambos campos");
                }
    }//GEN-LAST:event_jButton1ActionPerformed