JDK-6567541 : JMenuItem mnemonics are missing under certain conditions
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7,8,9
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-06-08
  • Updated: 2017-06-07
  • Resolved: 2017-06-07
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
tbd_majorResolved
Related Reports
Relates :  
Description
I am selecting F10 to select the menu, once the first menu gets selected all the menu's  mneuminonics gets highlighted. Now i press any one of the highlighted menu's mneumonics so that i can see the menuitems. The JRadioMenuItem & JCheckboxMenuItem mneumonics are not seen. Even there is an inconsistency in normal menuItem's mneumonics also.

This works fine in jdk1.6.0 as well as jdk1.6.0 update release also. Even it works fine in jdk1.7.0 _b05 but fails from jdk1.7.0 b07 onwards Hence its a regression.


Step to reproduce:
-------------------
1) Run SwingSet2 in windows LookAndFeel.
2) Press F10, you can see menu mneumonics are highlighted. 
example :- "F" for File , "L" for LookAndFeel & "p" for Options .
3) Press "p" to select "Option" Menu. so that you can see "Option menu" Menuitems. Observe that JCheckboxMenuItems are not showing the mneumonics. Even observe that menu mneumonics are also not seen.
4) Press "arrow Key" so that you can navigate to other menu also 
example select "LookAndFeel" Menu . Observe that JRadioMenuItem mneumoncs are also not seen. Even for "File" menuitems mneumonics are also not seen.

Another way to reproduce the problem.

Comments
Cannot reproduce in jdk10 and jdk9 latest build
07-06-2017

not a regression in 8 or 9
16-05-2014

since this is P3, it should be downgraded or re targeted to 9 (further might be deferred)
01-04-2014

EVALUATION I reproduced it with the latest JDK 7
18-02-2011

EVALUATION It is a regression of the fix for 6432667. Now the "Button.showMnemonics" LaF property determines to show mnemonics or not. The property itself depends on the Windows display settings: Control Panel -> Display Properties -> Appearance -> Effects... -> "Hide underlined letters for keyboard navigation until I press the Alt key". I.e. if you press the Alt key while navigating through a menu, you will see underlined mnemonics. Windows native menu items *always* underlines mnemonic if the menu item is navigated with keyboard. Unfortunately, after the fix for 6432667 there is a couple of possibilities to select menu item with keyboard and see non-underlined mnemonics. One scenario is given in the description section. I found another: 1) Run SwingSet2 in windows LookAndFeel. 2) Press the Alt key. The "File" menu item will become selected. 3) Press Alt + P. You will see the "Options" menu with non-underlined items.
16-08-2007

WORK AROUND There is a workaround. You can set the "Button.showMnemonics" LaF property manually and all will work as in the earlier jdk versions: UIManager.getDefaults().put("Button.showMnemonics", Boolean.TRUE);
16-08-2007