private void buildTree(FAT32Directory rootElement) {
        DefaultMutableTreeNode top = createNodes(rootElement);
        jTree = new JTree(top);
        
        ImageIcon leafIcon = new ImageIcon(this.getClass().getResource(leafIconPath));
        ImageIcon openIcon = new ImageIcon(this.getClass().getResource(openIconPath));
        ImageIcon closeIcon = new ImageIcon(this.getClass().getResource(closeIconPath));
        if (leafIcon != null && openIcon != null && closeIcon != null) {
            DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer();
            renderer.setLeafIcon(leafIcon);
            renderer.setOpenIcon(openIcon);
            renderer.setClosedIcon(closeIcon);
            jTree.setCellRenderer(renderer);
        }
        jTree.getSelectionModel().addTreeSelectionListener(new Selector());
        jScrollPane1.setViewportView(jTree);
    }