Skip to content
Antonio Vieiro edited this page Jan 25, 2018 · 1 revision

DevFaqFileChoosers

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-01-26, and needs to be reviewed.

Clone this wiki locally