void (DefaultMutableTreeNode parent, DefaultMutableTreeNode child) { int idx = myTreeTableModel.getIndexOfChild(parent, child); child.removeFromParent(); myTreeTableModel.nodesWereRemoved(parent, new int[]{idx}, new TreeNode[]{child}); }