JDK-7186371 : [macosx] Main menu shortcuts not displayed (7u6 regression)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-07-24
  • Updated: 2013-09-06
  • Resolved: 2012-09-17
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.
JDK 7 JDK 8
7u10Fixed 8Fixed
Related Reports
Relates :  
Relates :  
Description
Keyboard shortcuts are not displayed in main menu of an application. Can be reproduced with the attached sample J2SE project by running with 7u6 b06 versus with 7u6 b05. The sample project has a shortcut registered for the File / About action. The shortcut is visible with b05 and not with b06.

A regression in 7u6 on Mac. Introduced in b06 and still present in the latest 7u6 b20.

This problem has a critical usability impact on NetBeans users on Mac OS-X.

Comments
Verified
09-08-2013

SUGGESTED FIX hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/003a9701fccd
11-09-2012

EVALUATION If the application uses usual awt menu or usual swing menu, the problem is not reproduced. I guess that's why it was not found by the SQE team. The problem exists only if swing menu is used with "-Dapple.laf.useScreenMenuBar=true" which is false by default. Note that there is no way to rollback 7124551 because it fix our public api.
24-07-2012

EVALUATION The problem exists in CMenuItem.setLabel(String label),because it resets shortcuts which were previously set.
24-07-2012

WORK AROUND -Dapple.laf.useScreenMenuBar=false
24-07-2012