How to grab directory from a JFileChooser?
When I use a JFileChooser, I wish it would "remember" the last directory opened, but it always reverts back to \MyDocuments or something (where I NEVER place anything). I have to bubble up a gazillion levels and then back down again to locate the file I want.
Does the JFileChooser make this info available anywhere, so that I can store it for subsequent FileOpen (or Save) operations?
IOW, in addition to:
it would be nice if there was something like:
fileDisposition = fc.getSelectedFile();
(fc is a JFileChooser, and fileDisposition is a File)
fileDisposition = fc.getSelectedDirectory();