111112113114115116117118119120121
} } }; public void valueChanged(TreeSelectionEvent e) { XNode node = (XNode) tree.getLastSelectedPathComponent(); if (node != null) { selected(node); } }
129130131132133134135136137
tree.scrollPathToVisible(new TreePath(child.getPath())); treeModel.reload(parent); } public void removeChild(XNode child) { XNode parent = child.getParent(); treeModel.removeNodeFromParent(child); treeModel.reload(parent); }