public void commitEditing(){
  TableCellEditor editor=getCellEditor();
  if (editor != null) {
    editor.stopCellEditing();
  }
}

public void commitEditing ( ) { TableCellEditor editor = getCellEditor ( ) ; if ( editor != null ) { editor . stopCellEditing ( ) ; } }
commits on - going cell editing
