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.
Please see attched image file. Mnemonic Keys which was mistaken on the Japanese is attached. To reproduce: [case1] 1.New -> GUI Forms -> JFrame. JFrame is created. Form Editor displays. 2.JButton of Swing is added to Form. 3.JButton is moved to the North. 4.Connection Mode is chosen, JButton is pushed and, next, it pushes except JButton. Connection Wizard displays. ---The Mnemonic Keys of "Method Name:" (Image1-1.gif,Image1-2.gif). [case2] 1.Right click is carried out on Pallet and Create New Category is chosen. New Palette Category displays. ---The Mnemonic Keys of "New Category Name:" (Image2.gif). [case3] 1.Right click is carried out on Category and Rename is chosen. Rename displays. ---The Mnemonic Keys of "New Category Name:" (Image3.gif). 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). 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)); *OS:Solaris 8 *Orion Build:orion_020507 *JDK:JDK1.4.0 *locale:ja
Created attachment 5670 [details] Image1-1.gif
Created attachment 5671 [details] Image1-2.gif
Created attachment 5672 [details] Image2.gif
Created attachment 5673 [details] Image3.gif
Correction:1 [case3] 1.Right click is carried out on Category and Rename is chosen. Rename displays. --> ---The Mnemonic Keys of "New Name:" (Image3.gif). Correction:2 OS:Solaris 8 --> *Orion Build:orion_ml_020507 *JDK:JDK1.4.0 *locale:ja
I added the keyword "A11Y" for the bug. But I did not add the interest list for the bug. (michele.budris@sun.com)
I've fixed the first case (in 3.4 dev). Case 2 and 3 are not bugs in form editor - see issue 23879 which identifies the problem in openide.
I've added '&' to the following text labels in bundle: CTL_NewCategoryName=&New Category Name: CTL_NewName=&New Name: Translators should use the mnemonic as described in issue 24287.
I've verified the fixing in "NetBeans 3.4 Beta2 (Build 200206201555)" and "NetBeans 3.4 Trunk (Build 200207020100)" Thank You.
Consistent use of the I18N keyword.
Resolved for 3.3.x or earlier, no new info since then -> closing.