Réinitialisez un JTable sans supprimer les lignes

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

            }
}
Foolish Frog