/** * Discard the editor object and return the real estate it used to * cell rendering. */ public void removeEditor() { STableCellEditor editor = cellEditor; if (editor != null) { editor.removeCellEditorListener(this); //remove(editorComp); setCellEditor(null); int oldEditingColumn = editingColumn; int oldEditingRow = editingRow; setEditingColumn(-1); setEditingRow(-1); if (editorComp != null) { editorComp.setParent(null); } // end of if () editorComp = null; update(((TableCG)getCG()).getRenderCellUpdate(this, oldEditingRow, oldEditingColumn)); } }
setCellEditor(editor); setEditingRow(row); setEditingColumn(column);