I am trying to use a TreeTable with FileSystemContainer. When I call
FilesystemContainer files = new FilesystemContainer( new File( "/" ), fileFilter, false );
in Windows it seems to show the contents of c:. How can I make it show a list of all currently mounted volumes?
I found this
File[] roots = File.listRoots(); for(int i=0;i<roots.length;i++) System.out.println("Root["+i+"] :" + roots[i] );
So the question now is if I can load a TreeTable with the results of File.listRoots() and then if/when someone expands it, load the child node with a FileSystemContainer withe appropriate drive as a root directory…