Note: These pages are being reviewed.
I need to show a file chooser when my action runs. Can I remember the most recently used directories?
As of NetBeans 6.7, org.openide.filesystems.FileChooserBuilder
makes this easy.
Pass a Class
or unique String
key to the constructor of a FileChooserBuilder
.
The next time the same key is passed, the new file chooser will automatically be rooted on the directory selected the last time.
Apache Migration Information
The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqFileChoosers , that was last modified by NetBeans user Admin on 2009-11-06T15:42:34Z.
NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.