Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

reset a jTable without deleting rows

for(int i = 0 ; i < jTable1.getRowCount() ; i++){ //rows
            
            if(model.getValueAt(i, 0)!=null && model.getValueAt(i, 1)!=null){
                
                model.setValueAt(null, i, 0);
                model.setValueAt(null, i, 1);

            }
}
 
PREVIOUS NEXT
Tagged: #reset #jTable #deleting #rows
ADD COMMENT
Topic
Name
9+2 =