} }  if (newEd != cellEditor) { if (cellEditor != null && cellEditorListener != null) cellEditor.removeCellEditorListener(cellEditorListener); cellEditor = newEd; if (cellEditorListener == null) cellEditorListener = createCellEditorListener(); if (cellEditor != null && cellEditorListener != null) cellEditor.addCellEditorListener(cellEditorListener); createdCellEditor = false; } }
  protected void updateCellEditor()  {    if (tree.isEditable() && cellEditor == null)        setCellEditor(createDefaultCellEditor());    createdCellEditor = true;  }