Bugs item #543750, was opened at 2002-04-14 10:45
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=543750&group_id=44253
Category: UI: MacOS X-specific
Group: Ugly
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Centgraf (centgraf)
Assigned to: Peter Centgraf (centgraf)
Summary: Null File From OS X JFileChooser
Initial Comment:
Story:
A user opens a file. The user forgets the file is open, and uses the open command. The last openned file is already selected. The user double-clicks on the file, wishing to open it again. An exception is generated because the JFileChooser says the selected file is null.
Problem:
Mac OS X's implementation of JFileChooser isn't properly updating it's visual state when setSelectedFile(null) is called. When the user double-clicks the already-selected file, the JFileChooser fails to update it's internal state to reflect the selection, leaving a null value where a File should be.
Fix:
setSelectedFile to any other File, then set it back to the old selection, then set it to null. I used the File.getParentFile() for this purpose, but any old File should cause the JFileChooser to update.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=438935&aid=543750&group_id=44253
|