-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
x86
-
windows_xp
Name: rmT116609 Date: 10/07/2002
FULL PRODUCT VERSION :
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1.-b21)
Java HotSpot(TM) Client VM (build 1.4.1.-b21, mixed mode)
FULL OPERATING SYSTEM VERSION :
Windows XP Home German-Version 5.1.2600
ADDITIONAL OPERATING SYSTEMS :
Win2000, WinNT
EXTRA RELEVANT SYSTEM CONFIGURATION :
you'll need a german keyboard
A DESCRIPTION OF THE PROBLEM :
Can't use the German charactes M-^D÷M-^RM-^^ as mnemonics. They become underlined, but don't work.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. run the program I've pasted below
2. press ALT+Ù
3. the menu should open, but nothing happens
EXPECTED VERSUS ACTUAL BEHAVIOR :
after pressing ALT+Ù the menu should open but nothing
happens
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.event.*;
import javax.swing.*;
public class mnemonicRFE
{
public static void main(String[] args) {
JFrame f = new JFrame();
f.setSize(200,100);
JMenuBar mb = new JMenuBar();
f.setJMenuBar(mb);
JMenu m = new JMenu("abc ýÙM-^[M-^^");
m.setMnemonic('Ù');
mb.add(m);
JMenuItem mi = new JMenuItem("menuitem");
m.add(mi);
f.show();
try { Thread.sleep(4000); }
catch(Exception e) {}
System.exit(0);
}
}
---------- END SOURCE ----------
(Review ID: 165109)
======================================================================
- duplicates
-
JDK-4239028 setMnemonic(char) must support non-english characters
- Open
- relates to
-
JDK-4447202 German Umlauts don't work as button mnemonic
- Closed