EmailEditor tf = new EmailEditor(); EditorComboBox cb = new EditorComboBox(emailTypes); nodeEditor = cb; leafEditor = tf;
nodeEditor.addCellEditorListener(l); leafEditor.addCellEditorListener(l);
currentEditor.cancelCellEditing();
return currentEditor.getCellEditorValue();
if (leaf) { currentEditor = leafEditor; leafEditor.setText(value.toString()); } else { currentEditor = nodeEditor; nodeEditor.setSelectedItem( ((DefaultMutableTreeNode)value).getUserObject()); } return (Component)currentEditor;
return true;
nodeEditor.removeCellEditorListener(l); leafEditor.removeCellEditorListener(l);
return currentEditor.shouldSelectCell(event);
return currentEditor.stopCellEditing();