-
Bug
-
Resolution: Duplicate
-
P3
-
6
-
x86
-
windows_vista
FULL PRODUCT VERSION :
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Ultimate
Microsoft Windows [Version 6.0.6000]
A DESCRIPTION OF THE PROBLEM :
The file chooser should be canceled when ENTER is pressed and the Cancel button has the focus.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Please follow the below steps to reproduce the issue.
1. Launch the JFileChooser demo.
2. Click on "Show FileChooser" button.
3. Select a file
4. Tab to move the focus to "Cancel"
5. Hit ENTER
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The file chooser should be canceled.
ACTUAL -
The selected file is chosen.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Space bar can be used to cancel the file chooser when the Cancel has the focus, or ESCAPE.
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Windows Vista Ultimate
Microsoft Windows [Version 6.0.6000]
A DESCRIPTION OF THE PROBLEM :
The file chooser should be canceled when ENTER is pressed and the Cancel button has the focus.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Please follow the below steps to reproduce the issue.
1. Launch the JFileChooser demo.
2. Click on "Show FileChooser" button.
3. Select a file
4. Tab to move the focus to "Cancel"
5. Hit ENTER
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The file chooser should be canceled.
ACTUAL -
The selected file is chosen.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Space bar can be used to cancel the file chooser when the Cancel has the focus, or ESCAPE.
- duplicates
-
JDK-5035693 "Open" button should be a default one in JFileChooser under Windows XP LAF
-
- Closed
-
- relates to
-
JDK-8040323 JFileChooser within a component ignores the Enter key
-
- Closed
-