Re: How to change the "default folder"?
Posted by
Albert Cardona-2 on
Aug 26, 2010; 3:47pm
URL: http://imagej.273.s1.nabble.com/How-to-change-the-default-folder-tp3687164p3687165.html
2010/8/26 Norbert Vischer <
[hidden email]>:
> When opening or saving a file via Java, I want to present a file dialog that displays a desired directory that the user most probably will choose as destination.
> However, I don't know how to influence the OS - it usually makes its own decisions and presents a completely different "default folder".
> (On the Mac, I couldn't solve this problem since many years) - Any ideas?
With ij.io.OpenDialog, use the
OpenDialog.setDefaultDirectory("/path/to/some/dir");
See
http://rsb.info.nih.gov/ij/developer/api/ij/io/OpenDialog.htmlAlbert
--
http://albert.rierol.net