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 94729 - I18N - mnemonics in the pattern dialog are hard-coded
Summary: I18N - mnemonics in the pattern dialog are hard-coded
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-02-06 19:47 UTC by bugbridge
Modified: 2007-05-29 15:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-06 19:47:03 UTC
Original status: 5-Cause Known; Suggested Status: NEW

Original Target Release: mako_dev; Suggested Target Milestone : Dev


Description:
Tested build: Build 051030_2

In the pattern dialog, the mnemonics for 'Example:', 'Results"' and 'Test'
are hard-coded.

jsfcl/src/com/sun/jsfcl/std/property/
NumberPatternPanel.java:        lblExample.setDisplayedMnemonic('a');
NumberPatternPanel.java:        lblResults.setDisplayedMnemonic('R');
NumberPatternPanel.java:        btnTest.setMnemonic('e');

Evaluation:
This seems to be fairly standard practice across our editors, customizers and
other panels. Perhaps there is a way to register a mnemomic with NetBeans?
Comment 1 Dongmei Cao 2007-04-16 20:12:00 UTC
I don't see the hard-coded mnemonics at all. Must be fixed a long time ago
Comment 2 ohsumi 2007-04-17 03:15:27 UTC
This problem seems to have been fixed in VWP 5.5.1.

propertyeditors/src/com/sun/jsfcl/std/property/NumberPatternPanel.java
       
lblExample.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("com/sun/jsfcl/std/property/Bundle").getString("example_mnemonic").charAt(0));
       
lblResults.setDisplayedMnemonic(java.util.ResourceBundle.getBundle("com/sun/jsfcl/std/property/Bundle").getString("results_mnemonic").charAt(0));
       
btnTest.setMnemonic(java.util.ResourceBundle.getBundle("com/sun/jsfcl/std/property/Bundle").getString("testButton_mnemonic").charAt(0));