}
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) {
myTree = tree;
NodeRenderer renderer = ((NodeRenderer) tree.getCellRenderer().getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, false));
rebuildUI(renderer);
myIconLabel.setIcon(renderer.getIcon());
myTextField.setText(getText(((DefaultMutableTreeNode) value).getUserObject()));
myTextField.addFocusListener(this);
SwingUtilities.invokeLater(new Runnable() {