private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
/*Metodo que muestra los datos de los clientes almacenados al ingresar su rut, si este no está registrado,
 * permite la adicion de sus datos, además muestra el valor total de la venta
 */                
        boolean a=false;
        for(int i=0;i<registroCli.getRowCount();i++){
            if(jTextField1.getText().equals((String)registroCli.getValueAt(i, 0))){
                a=true;
               jTextField2.setText((String)registroCli.getValueAt(i, 1));
               jTextField3.setText((String)registroCli.getValueAt(i, 2));
               jTextField4.setText((String)registroCli.getValueAt(i, 3));
               jTextField5.setText((String)registroCli.getValueAt(i, 4));
               jTextField6.setText((String)registroCli.getValueAt(i, 5));
           }
        }
            if(a==false){
                jButton2.setVisible(true);
                
                jTextField2.setText(null);
                jTextField3.setText(null);
                jTextField4.setText(null);
                jTextField5.setText(null);
                jTextField6.setText(null);
            
        }
         int total=0;
        for(int i=0;i<jTable2.getRowCount();i++){
            total=total+(int)jTable2.getValueAt(i, 4);
         }
        
        jLabel12.setText(" $ "+total*1.19);
        jLabel16.setText(String.valueOf(total));
        jLabel19.setText(String.valueOf(total*0.19));
        jLabel18.setText(String.valueOf(total*1.19));
               
    }//GEN-LAST:event_jButton1ActionPerformed