Answers for "reset a jTable without deleting rows"

0

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);

            }
}
Posted by: Guest on February-09-2022

Code answers related to "reset a jTable without deleting rows"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language