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

Summary: I18N - mnemonics in the pattern dialog are hard-coded
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: Dongmei Cao <dongmeic>
Status: CLOSED FIXED    
Severity: blocker CC: jf4jbug, kaa, kfrank
Priority: P2 Keywords: I18N
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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));