void () { final TreePath selectionPath = myTree.getSelectionPath(); if (selectionPath == null) return; MyNode node = (MyNode)selectionPath.getLastPathComponent(); if (node == null) return; myState.setLastEditedConfigurable(getNodePathString(node)); //survive after rename; NamedConfigurable configurable = node.getConfigurable(); if (configurable != null) { myDetails.setText(configurable.getBannerSlogan()); } node.reloadNode((DefaultTreeModel)myTree.getModel()); fireItemsChangedExternally(); }