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