* Set a child node of the current node with the given user object.
* @param userObject User object of the child node.
*/
public void setCurrentChild(Object userObject) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();
Enumeration<?> children = node.children();
while (children.hasMoreElements()) {
DefaultMutableTreeNode child = (DefaultMutableTreeNode) children.nextElement();
Object childObject = child.getUserObject();
if (childObject.equals(userObject)) {
setCurrentNode(childObject);