I need to show a file chooser when my action runs. Can I remember the most recently used directories?

Apache NetBeans Wiki Index

Note: These pages are being reviewed.

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.