setLayout(new BorderLayout());
// Filters out the files that should not be displayed in the tree view
AndFileFilter treeFileFilter = new AndFileFilter(
new AttributeFileFilter(FileAttribute.DIRECTORY),
new ConfigurableFolderFilter()
);
FileComparator sort = new FileComparator(FileComparator.NAME_CRITERION, true, true);
model = new FilesTreeModel(treeFileFilter, sort);
tree = new JTree(model);