This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: |
Custom dialogs created by FileChooserBuilder should remember current directory |
Product: |
platform
|
Reporter: |
crimes |
Component: |
Filesystems | Assignee: |
Jaroslav Havlin <jhavlin> |
Status: |
RESOLVED
FIXED
|
|
|
Severity: |
normal
|
Keywords: |
NETFIX, PATCH_AVAILABLE |
Priority: |
P3
|
|
|
Version: |
7.4 | |
|
Hardware: |
All | |
|
OS: |
All | |
|
Issue Type:
|
ENHANCEMENT
|
Exception Reporter:
|
|
Attachments: |
Proposed patch
|
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).