processRoots();
appendFileStructure(getFileChooser().getFileSystemView().getDefaultDirectory(), predefinedStructure);
}
private void processRoots() {
FileSystemView fileSystemView = getFileChooser().getFileSystemView();
File[] roots = fileSystemView.getRoots();
for (int i = 0; i < roots.length; i++) {
predefinedStructure.add(roots[i]);
File[] children = fileSystemView.getFiles(roots[i], false);
if (children != null) {
for (int j = 0; j < children.length; j++) {
processRoot(children[j]);
}
}