folderNode.setFolder(folder);
folderNode.setIcon(imageUtil.selectImage(folder));
DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(folderNode);
rootModel = new DefaultTreeModel(rootNode);
tree = new JTree(rootModel);
TreeCellRenderer renderer = new IconCellRenderer();
tree.setCellRenderer(renderer);
tree.putClientProperty("JTree.lineStyle", "Angled");
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.setShowsRootHandles(true);
scrollPanel.setViewportView(tree);