buildTree(null, rootContainer);
treePaths = new ArrayList(); root = buildTree(null, rootContainer); treeModel = new DefaultTreeModel(root); tree.setModel(treeModel);  TreePath tp; for (Iterator ii=treePaths.iterator(); ii.hasNext();) { tp = (TreePath) ii.next(); tree.expandPath(tp);  }
    public void updateTree(ShapeContainer rootContainer) {        buildTree(null, rootContainer);            }