if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor());
completeEditing(); TreeCellEditor newEd = null; if (tree != null && tree.isEditable()) { newEd = tree.getCellEditor(); if (newEd == null) { newEd = createDefaultCellEditor(); if (newEd != null) { tree.setCellEditor(newEd);
  protected void updateCellEditor()  {    if (tree.isEditable() && cellEditor == null)        setCellEditor(createDefaultCellEditor());    createdCellEditor = true;  }