Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 225953 - Custom dialogs created by FileChooserBuilder should remember current directory
Custom dialogs created by FileChooserBuilder should remember current directory
Product: platform
Classification: Unclassified
Component: Filesystems
All All
: P3 (vote)
: 8.0.1
Assigned To: Jaroslav Havlin
Depends on:
  Show dependency treegraph
Reported: 2013-02-10 15:15 UTC by crimes
Modified: 2013-09-04 07:55 UTC (History)
0 users

See Also:

Proposed patch (1.03 KB, text/plain)
2013-02-10 15:15 UTC, crimes

Note You need to log in before you can comment on or make changes to this bug.
Description crimes 2013-02-10 15:15:07 UTC
Created attachment 131208 [details]
Proposed patch

JFileChoosers created using FileChooserBuilder.createFileChooser() only remember the current directory when the dialog is created using showOpenDialog(...) or showSaveDialog(...), but not when it is created using showDialog(...).  This is a problem as the last method is the only way to create a dialog with custom approve button text (and probably other custom configuration as well).

The reason is that file choosers created by FileChooserBuilder only override the showOpenDialog(...) and showSaveDialog(...) methods to remember the current directory.  I can't see any obvious reason not to override showDialog(...) - which is in fact called by the other two methods - instead/as well (see the attached patch).
Comment 1 Jaroslav Tulach 2013-07-18 08:49:44 UTC
OK, good patch. I don't see you in the list of approved contributors.
can you please sign OCA and reopen this bug.
Comment 2 crimes 2013-07-29 21:10:07 UTC
OCA signed, sent & accepted.
Comment 3 Jaroslav Havlin 2013-08-15 13:50:47 UTC
(In reply to crimes from comment #2)
> OCA signed, sent & accepted.
Thank you.
Comment 4 Jaroslav Havlin 2013-09-04 07:55:01 UTC
Integrated as
Thank you very much for providing the patch.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo