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 23880 - I18N - mnemonic key doesn't work with translated
Summary: I18N - mnemonic key doesn't work with translated
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@utilities
URL:
Keywords: A11Y, I18N
Depends on:
Blocks:
 
Reported: 2002-05-23 06:49 UTC by Masafumi Matsuda
Modified: 2003-07-01 15:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snap shot (24.16 KB, image/gif)
2002-05-23 06:50 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-23 06:49:01 UTC
Please see attched image file. 
Mnemonic Keys which was mistaken on the Japanese
is attached.

To reproduce:
Edit -> Search Filesystems... -> Search -> Search
Results Window

The Mnemonic Keys of "Close"

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 thisproblem, 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.9  
*Orion Build:orion_ml_020520  fcc Build:20.4
*JDK:JDK1.4.0
*locale:ja
Comment 1 Masafumi Matsuda 2002-05-23 06:50:21 UTC
Created attachment 5925 [details]
snap shot
Comment 2 _ lkramolis 2002-05-23 10:23:29 UTC
It describes same problems as in issue #23665. I would like to ask you
to answer questions I asked there. Thanks.
Comment 3 _ lkramolis 2002-05-24 15:10:59 UTC
Used separated MNEM keys for mnemonics.
Comment 4 hiroshiy 2002-10-04 10:32:08 UTC
I've verified the fixing in "NetBeans Development Build
(200210030100)".
Comment 5 Jesse Glick 2002-12-23 16:35:33 UTC
Consistent use of the I18N keyword.
Comment 6 Quality Engineering 2003-07-01 15:31:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.