I've added a JFileChooser to my code, but I am having a battle with getting it set how I want it too.
I'm only wanting the JFileChooser to display the "Details" section in the Chooser's options, not the "List, Desktop, Up One Level, etc.".
Printable View
I've added a JFileChooser to my code, but I am having a battle with getting it set how I want it too.
I'm only wanting the JFileChooser to display the "Details" section in the Chooser's options, not the "List, Desktop, Up One Level, etc.".
Okay, I've decided to keep the FileChooser, but I want the chooser to only select directories. What would be the code for it?
I thought itd be,
fc.setFileView(JFileChooser.DIRECTORIES_ONLY);
but that errors, so its obviously wrong.
What could it be? :(
Without seeing your code it's hard to say what the problem is.
I suggest taking a look here - JFileChooser: setFileFilter(FileFilter filter) : JFileChooserjavax.swingJava by API