JDK-4239028 : setMnemonic(char) must support non-english characters
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0,1.3.0,1.4.0,7u25,8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_nt,windows_xp
  • CPU: x86
  • Submitted: 1999-05-18
  • Updated: 2021-12-20
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
tbdUnresolved
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Name: krT82822			Date: 05/17/99


this button doesn't work properly:

...
JButton button1 = new JButton("Button with russian char '?'!");
button1.setMnemonic('?');    //same char
button1.addActionListener(
    new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            System.out.println("Button clicked!");
        }
    }
);
...
(Review ID: 54577) 
======================================================================

Comments
Change the priority to P3. This bug affects all the Java version. In Asian locales like Chinese, Japanese and Korean, it's not a problem, but in some other locales (ISO-8859-1 encoding), for example, Swedish, characters like åÅ, äÄ, and öÖ and are often used as mnemonic in all the other products and windows os, but not in Java. Below are comments from Swedish Language Lead in WPTG: “I can assure you that we have used åÅ, äÄ, and öÖ in all products that do contain mnemonics and where we have been allowed to change the letters in translation. This has been so for many years. So far we’ve not received any customer bugs regarding this. I have also checked my private computer on Windows 7, and in for example Word there are plenty of examples of å, ä, ö, mnemonics. Å, ä and ö are heavily integrated in the Swedish language, they are used frequently (not like “z” in English, more like “e”). They cannot be omitted and the meaning is changed if the dots are removed: “här” = “here” “har” = “have” “hår” = “hair” “hör” = “hear” This only goes to say that it is inconvenient and impractical not being able to use these three letters.”
06-01-2014

EVALUATION Mnemonics and Keyboard Accelerators are pretty much useless for non-English languages. The current API is not powerful enough to allow fixing this problem. This bug should be addressed in the merlin feature release. brian.beck@Eng 1999-09-17 Note: The setMnemonic(char) method is obsolete and has been replaced with setMnemonic(int) which takes a VK code. However, this still may not be powerful enough for non-English languages. ###@###.### 2004-03-04
04-03-2004