private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        try {
            
            cliente = new Cliente(this.jTextField1.getText(), this.jTextField2.getText(), this.jTextField3.getText(), this.jTextField4.getText());
            if( this.jTextField3.getText().length() <= 0 || this.jTextField3.getText().contains(" ")  ){
            JOptionPane.showMessageDialog(null,"Tiene que ingresar minimo cedula o RUC");
            }else{
            cliente.Ingresar_cliente(cliente);

          this.dispose();
          bandera = true;
            }
            
        } catch (SQLException ex) {
            Logger.getLogger(VIngresar_Cliente.class.getName()).log(Level.SEVERE, null, ex);
        }


    }//GEN-LAST:event_jButton1ActionPerformed