-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2, 5.0
-
b35
-
generic, x86
-
generic, windows_2000
-
Verified
Name: iaR10016 Date: 09/15/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b19, JDK1.4.2-b28
Platform : all
JFileChooser works with keyboard incorrectly sometimes.
Please, run doit.sh script below:
--------- test.java ---------
import javax.swing.*;
public class test {
public static void main(String[] args) {
(new JFileChooser("./dir1")).showOpenDialog(new JFrame());
System.out.println("OK!");
}
}
---------- doit.sh ----------
#!/bin/bash
mkdir dir1
mkdir dir1/dir11
mkdir dir1/dir11/dir111
mkdir dir1/dir11/dir112
mkdir dir1/dir12
mkdir dir1/dir13
mkdir dir1/dir14
mkdir dir1/dir15
mkdir dir1/dir15/dir151
mkdir dir1/dir15/dir152
JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
export PATH=.:$PATH
$JDK/bin/javac test.java
$JDK/bin/java test
-----------------------------
JFileChooser appears after the test class loading. Current directory is "dir1".
Please, do the following steps to reproduce the failure:
1. Move the focus to the file list panel (do not use mouse!) - you need to press <Tab> key
10 times to do it. Now focus is in the file panel. There is no files selected, so the
cursor is not highlighted.
2. After the pressing <Down> key, "dir11" directory becomes selected. This is correct
expected behavior.
3. Move the cursor to "dir15" pressing <Down> key several times, then press <Enter> and
enter "dir15" directory.
4. Try to play with keyboard when you are inside "dir15" directory: you will see that
it is impossible to select any files in the file list using keyboard now.
Please, note that all is OK with "dir11" directory - if you enter it, all is OK there
and file list can correctly get focus without mouse. It happens because "dir11" is the
first directory in the "dir1" file list and 1 is less then the number of the files in
"dir11" folder (2), whereas "dir15" is fifth file in "dir1" files list and the file
number in "dir15" (2) is less then 5.
======================================================================
- duplicates
-
JDK-5057148 JFileChooser: Tabbing into the file-chooser window broken
- Closed
- relates to
-
JDK-5061077 Exception with JFileChooser in GTK LNF
- Resolved
-
JDK-5036904 JFileChooser in Motif L&F does not comply with Section 508
- Resolved
-
JDK-5041519 JFileChooser: Regression in fix to 4922507
- Resolved
-
JDK-4980406 PIT: JFileChooser hangs when navigating through the sub dirs
- Closed
-
JDK-4980454 PIT: "PrintToFile" feature is broken for cross-platform print dialog
- Closed
-
JDK-5031354 REGRESSION: Reg-test javax/swing/JFileChooser/4150029/bug4150029.java fails
- Closed