Problem Changing the Status of an attribute of a java database [closed]

1

I have a checkbox in the first column of my jtable to select the rows of the records that I want to change from bone state from true to false and vice versa but when clicking on a checkbox and After removing the blue flag from the check to remove the selected method, the same method is used, then create this method but it does not work anyway.

private void datalistadoMousePressed(java.awt.event.MouseEvent evt) {                                         

         int fila =datalistado.getSelectedRow();
         TableModel model = datalistado.getModel();
            if (fila != y){
              y = fila;
              rep=0;
              rep++;
            }else{
              rep++;
            }
            if(rep%2==0){   
                  listaRIF.removeLast();
                  listaEstado.removeLast();
            }else{
                  listaRIF.add((String)datalistado.getValueAt(fila,1));
                  listaEstado.add((Boolean)datalistado.getValueAt(fila,9));
           }  
    }             '
    
asked by Efrainrodc 30.12.2016 в 02:12
source

0 answers