Component (JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { RepositoryWithBranchPanel<?> panel = (RepositoryWithBranchPanel<?>)((DefaultMutableTreeNode)value).getUserObject(); myValue = panel; myTree.firePropertyChange(PushLogTreeUtil.EDIT_MODE_PROP, false, true); return panel.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row, true); }