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