JDK-6573887 : JFileChooser does not select file after filter is changed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2007-06-26
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
STEPS TO REPRODUCE:

1. Go to your home directory and make sure it has the following files:
- "a"
- "b.gif"
- no other GIF files
2. - Launch the JFileChooser demo
- Select "Show JPG and GIF filters"
- Select "Windows LAF"
- Push "Show FileChooser" button
- Ensure that the "*" filter is chosen.
- Select "b.gif" file from the "Files" list on the right
- Type in 'Enter file name' text 'blablabla'
- Toggle filter menu and select "GIF image files (.gif)"
- Try to select "b.gif" file from the "Files" list on the right by mouse clicking

After this steps 'Enter file name' contains 'blablabla' instead of 'b.gif'.

The same problem may be in Metal/Synth/GTK LAFs.

Comments
- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

EVALUATION It happens because JFileChooser.setSelectedFile('b.gif') doesn't fire event SELECTED_FILE_CHANGED_PROPERTY (because JFileChooser.getSelectedFile() == 'b.gif' at that moment).
26-06-2007