tree.putClientProperty("JTree.lineStyle", "Angled");
    private TreeViewImageSet createTree(ImageDisplay node)    {        tree = new JTree();        tree.setShowsRootHandles(true);        tree.setCellRenderer(new TreeCellRenderer(true, false));        tree.putClientProperty("JTree.lineStyle", "Angled");        tree.getSelectionModel().setSelectionMode(                TreeSelectionModel.SINGLE_TREE_SELECTION);        TreeViewImageSet root = new TreeViewImageSet(node);        tree.setRootVisible(false);        tree.setModel(new DefaultTreeModel(root));        tree.addMouseListener(new MouseAdapter() {            public void mousePressed(MouseEvent e) { onClick(e, false); }            public void mouseReleased(MouseEvent e) { onClick(e, true); }            public void mouseEntered(MouseEvent e) { model.removeRollOver(); }        });        tree.addTreeSelectionListener(new TreeSelectionListener() {                        public void valueChanged(TreeSelectionEvent e)            {                DefaultMutableTreeNode n = (DefaultMutableTreeNode)                 tree.getLastSelectedPathComponent();                if (n == null) return;                model.setSelectedDisplay((ImageDisplay) n.getUserObject());                    tree.getCellRenderer().getTreeCellRendererComponent(tree, n,                         tree.isPathSelected(new TreePath(n.getPath())),                        false, true, 0, false);             }        });        return root;    }