I’m currently working on building a Java file browser but got a little stuck.
1)[s] I couldn’t Figure out how to get special folders (libraries, recent files, network). These are in the JFileChooser.
I read that you could get them by :
File[] cbFolders = (File[]) sun.awt.shell.ShellFolder.get(“fileChooserShortcutPanelFolders”);
or
File[] cbFolders = (File[]) sun.awt.shell.ShellFolder.get(“fileChooserComboBoxFolders”);
But these return garbage folders and nothing what I want (well ‘fileChooserShortcutPanelFolders’ returns ‘recent’ folder).
Yes I know these sun.* class files but I want to have special folder support in Oracle Java (work out mac/etc later).[/s]
Seems Commons VFS doesn’t like these files. So might have to ask for help over there.
- Any way to work out what is a system file/folder? I could check for .sys for one type of system files but doesn’t help for the rest.
JFileChooser seems to hide these files(but still show hidden files), so there must be a way.