This content has been marked as final. Show 2 replies
There were 2 ideas discussed in that thread. One was to use
JFileChooser fc = new JFileChooser();JPanel whitebox = (JPanel)((Container)fc.getComponent(1)).getComponent(0);
... This is platform-specific, since it relies on the specific file chooser L&F.
The other idea was to use a JTree to display the whole contents of the user's computer. The problem is that the JTree takes forever to create on a large sized hard drive, since it actually reads the entire user's hard drive. I could recode it and lazily create the JTree nodes.
But what I actually want is something equivalent to the "white panel" from the JFileChooser: the contents of one directory, in a list/table, where double clicking on a folder changes the view to that directory. Does this not exist anywhere?