reloadRoot = true;
    void setSortedNodes(List nodes, TreeImageDisplay parentNode)    {        DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel();        parentNode.removeAllChildren();        Iterator i = nodes.iterator();         boolean b = (parentNode.equals(dtm.getRoot()));        TreeImageDisplay child;        while (i.hasNext()) {            child = (TreeImageDisplay) i.next();            if (b) parentNode.addChildDisplay(child);            dtm.insertNodeInto(child, parentNode, parentNode.getChildCount());        }        dtm.reload(parentNode);        expandNode(parentNode);        if (!model.isMainTree()) {            i = nodes.iterator();            List copies = new ArrayList(nodes.size());            while (i.hasNext()) {                copies.add(((TreeImageDisplay) i.next()).copy());            }            dtm = (DefaultTreeModel) goIntoTree.getModel();            DefaultMutableTreeNode r = (DefaultMutableTreeNode) dtm.getRoot();            TreeImageDisplay d = model.getLastSelectedDisplay();            r.removeAllChildren();            TreeImageDisplay copy = d.copy();            dtm.insertNodeInto(copy, r, r.getChildCount());            buildTreeNode(copy, copies, dtm);            reloadRoot = true;            dtm.reload(r);            if (copy.isChildrenLoaded()) expandGoIntoTreeNode(copy);            scrollPane.getViewport().removeAll();            scrollPane.getViewport().add(goIntoTree);            repaint();        }    }