-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.0.1
-
generic
-
generic
Consider the following code fragment:
JMenuItem addMenuItem = new JMenuItem("Add");
addMenuItem.setMnemonis(KeyEvent.VK_A);
addMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_INSERT,
Event.ALT_MASK));
editMenu.add(addMenuItem);
The intent here is that A is the mnemonic, while Alt+Insert is the
menu accelator. Thus in the menu, A (of Add) should be underlined and
the menu item should look like "A_dd Alt+Insert".
The bug is that A of Alt also gets underlined. That is the menu item
looks like "A_dd A_lt+Insert"
This is causing confusion for the application users.
- duplicates
-
JDK-4127232 Accelerators on menus underlined as mnemonics
-
- Resolved
-