United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7186371 [macosx] Main menu shortcuts not displayed (7u6 regression)
JDK-7186371 : [macosx] Main menu shortcuts not displayed (7u6 regression)

Details
Type:
Bug
Submit Date:
2012-07-24
Status:
Closed
Updated Date:
2013-08-09
Project Name:
JDK
Resolved Date:
2012-09-17
Component:
client-libs
OS:
os_x
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u6
Fixed Versions:
7u40 (b08)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

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
WORK AROUND

-Dapple.laf.useScreenMenuBar=false
                                     
2012-07-24
EVALUATION

The problem exists in CMenuItem.setLabel(String label),because it resets shortcuts which were previously set.
                                     
2012-07-24
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.
                                     
2012-07-24
SUGGESTED FIX

hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/003a9701fccd
                                     
2012-09-11
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/cf11c0840782
User:  coffeys
Date:  2012-12-20 17:35:22 +0000

                                     
2012-12-20
URL:   http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/cf11c0840782
User:  lana
Date:  2012-12-28 18:30:44 +0000

                                     
2012-12-28
Verified
                                     
2013-08-09



Hardware and Software, Engineered to Work Together