This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Mnemonic Keys which was mistaken on the Japanese is attached. <Select Resource Bundles dialog> 1. Create a Swing Form newly. 2. Choose a title with the Properties tab of a Component Inspector. 3. A property editor window displays. 4. Choose a Resource Bundle by the Select mode pull down list. 5. Push a Browsing button. 6. Display a Select Resource Bundles dialog. 7. If it translates into Japanese, mnemonic will not function. The Mnemonic Keys of "Select".(Image1.gif) <New Bundle dialog> 1.from 4. is the same procedure as the <Select Resource Bundles dialog>. 5. Push a New button. 6. Display a New Bundle dialog. 7. If it translates into Japanese, mnemonic will not function. The Mnemonic Keys of "Filesystem".(Image2.gif) <Replace Code Format Editor dialog> 1.from 4. is the same procedure as the <Select Resource Bundles dialog>. 5. Push a Format button. 6. Display a Replace Code Format Editor dialog. 7. If it translates into Japanese, mnemonic will not function. The Mnemonic Keys of "Replace Code Format".(Image3.gif)
Created attachment 3818 [details] Image1.gif
Created attachment 3819 [details] Image2.gif
Created attachment 3820 [details] Image3.gif
reassigning
From my point of view it looks like localization issue.
Would you check if the first character is not used as mnemonic key? By localization, the first character becomes no-ascii character. As a result, the mnemonic key doesn't work by localization. To fix this problem, we need to set two resource bundle messages, one is for caption, another is for mnemonic. Example=TestString Example_Mnemonic=T And we should use like this: myButton.setText(myBundle.getString("Example")); myButton.setMnemonic(myBundle.getString("Example_Mnemonic").charAt(0). I guess other many objects are implemented like above. The following line does not work with localized version, because the first character is not an alphanumeric because it's replaced to multi-byte Japanese character. myButton.setMnemonic(myResourceBundle.getString("Example").charAt(0));
Some buttons need not have mnemonics. See Java Look and Feel design guidelines (http://java.sun.com/products/jlf/ed2/book/HIG.Behavior3.html#35796). All buttons mentioned in this bug report are either OK/Cancel buttons which do not need mnemonics. Mnemonics are present neither in English nor in Japanese version.
Consistent use of the I18N keyword.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4 or earlier, no new info since then -> closing.