-
Bug
-
Resolution: Fixed
-
P4
-
1.4.1, 5.0
-
None
-
tiger
-
generic, x86
-
generic, windows_nt, windows_xp
The following happens using 1.4.2, with the Windows L&F as well as Metal, on Win2k and XP.
When you have a JFileChooser up and are renaming the last item, clicking anywhere below the file being renamed should take you out of rename mode, and deselect the file (which is what happens w/ the native Windows file chooser). Instead, in Details view nothing happens, and in List view the last items acts as if its icon has been clicked. In both cases, you remain in file rename mode, and it's very disoncerting to be "stuck" renaming a file.
I believe that the underlying problem is that JFileChooser isn't correctly interpreting where mouse clicks in the file pane should go. Some examples:
1) Select the first item in a List view. Then click somewhere below that last item. This should deselect the first item, but instead it selects the last item.
2) Select the first item in a Details view. Then click somewhere below the last item. This should deselect the first item, but instead nothing happens.
When you have a JFileChooser up and are renaming the last item, clicking anywhere below the file being renamed should take you out of rename mode, and deselect the file (which is what happens w/ the native Windows file chooser). Instead, in Details view nothing happens, and in List view the last items acts as if its icon has been clicked. In both cases, you remain in file rename mode, and it's very disoncerting to be "stuck" renaming a file.
I believe that the underlying problem is that JFileChooser isn't correctly interpreting where mouse clicks in the file pane should go. Some examples:
1) Select the first item in a List view. Then click somewhere below that last item. This should deselect the first item, but instead it selects the last item.
2) Select the first item in a Details view. Then click somewhere below the last item. This should deselect the first item, but instead nothing happens.
- duplicates
-
JDK-4834223 Win L&F: JList highlighting and pick area do not match native
-
- Closed
-
-
JDK-4878546 UNABLE TO SELECT DIR/FILE WHEN ONLY ONE DIR/FILE IN THE DIR,WHILE RENAMING
-
- Closed
-
- relates to
-
JDK-4882890 Focus on a file is not painted correctly in JFileChooser in Details Mode
-
- Resolved
-
-
JDK-5067819 JFileChooser - can't clear selection to select parent directory
-
- Closed
-