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.

Bug 23011

Summary: I18N - mnemonic key doesn't work with translated
Product: obsolete Reporter: Masafumi Matsuda <mmc131206>
Component: externaleditorAssignee: issues@obsolete <issues>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jf4jbug, mbudris
Priority: P4 Keywords: A11Y, I18N
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: snap shot

Description Masafumi Matsuda 2002-05-01 09:07:02 UTC
Please see attched image file.
Mnemonic Keys which was mistaken on the Japanese
is attached.
To reproduce: Tool -> Setup Wizard -> Step 2
The Mnemonic Keys of "Built-in Editor"

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.

*OS:Solaris 5.8  
*Orion Build:orion_ml_020429  fcc Build:20.4
*JDK:JDK1.4.0
*locale:ja
Comment 1 Masafumi Matsuda 2002-05-01 09:10:09 UTC
Created attachment 5610 [details]
snap shot
Comment 2 David Weatherford 2002-05-13 20:28:49 UTC
Fixed in NetBeans trunk, but not in FFJ (in FCS freeze now).

Fixing 23296 required fixing this issue as well.
Comment 3 Masafumi Matsuda 2002-05-16 03:10:06 UTC
I added the keyword "A11Y" for the bug.
But I did not add the interest list for the bug.
(michele.budris@sun.com) 
Comment 4 Jesse Glick 2002-12-23 16:35:24 UTC
Consistent use of the I18N keyword.