JDK-5013564 : Win L&F: Cancel button in JFileChooser dialog should not have mnemonic
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-03-15
  • Updated: 2005-11-09
  • Resolved: 2005-11-09
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 JDK 6
5.0u7Fixed 6 b60Fixed
Description
Name: rv122619			Date: 03/15/2004

For normal good Windows applications, the cancel button has no mnemonic. This is because "cancel" is usually handled by the escape key as opposed to a mnemonic.
 Likewise, "OK" has no mnemonic because it is the default button and handled by the enter key.

======================================================================

Comments
EVALUATION The cancel button in the JFileChooser when running on Windows has a mnemonic. You can't see it by default but it's there when you hold down the Alt key. Native Windows apps don't have a mnemonic on the cancel button because the Escape key is always mapped to cancel on most any dialog. To fix this I have added a line to the windows.properties which sets the cancel button mnemonic to -1, which will remove the mnemonic at runtime.
12-09-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
25-09-2004

EVALUATION Name: sh120115 Date: 03/16/2004 I agree. The native Windows JFileChooser has no mnemonic. I recently turned down adding mnemonics to the JColorChooser's OK and Cancel buttons for the same reasons given in the description. These mnemonics should be removed from JFileChooser. ###@###.### 2004-03-16 ======================================================================
16-03-2004