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 - I18N - mnemonic key doesn't work with translated
Summary: I18N - mnemonic key doesn't work with translated
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: externaleditor (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: A11Y, I18N
Depends on:
Blocks:
 
Reported: 2002-05-01 09:07 UTC by Masafumi Matsuda
Modified: 2002-12-23 16:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (21.67 KB, image/gif)
2002-05-01 09:10 UTC, Masafumi Matsuda
Details

Note You need to log in before you can comment on or make changes to this bug.
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.