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 70808

Summary: I18N - hard coded mnemonic keys
Product: java Reporter: Ken Frank <kfrank>
Component: I18NAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker CC: jf4jbug, mgrummich
Priority: P3 Keywords: I18N, SIMPLEFIX
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Ken Frank 2005-12-27 04:57:30 UTC
If these are actually used in current code, then the mnemonic key assignments
need to come from bundle files, and for each mnemonic, in same bundle should
be key/val for the label and key/val for assigned key.

        privateRadio.setMnemonic('p');
        protectedRadio.setMnemonic('o');
        publicRadio.setMnemonic('u');
        staticCheck.setMnemonic('a');
        finalCheck.setMnemonic('f');
        transientCheck.setMnemonic('t');

 /src/org/netbeans/modules/i18n/java/JavaReplacePanel.java
Comment 1 Marian Petras 2006-01-06 20:35:58 UTC
Confirmed.

It seems the mnemonics are really hard-coded.

But they are used only on a special page (JavaReplacePanel) of the
Internationalization wizard which is disabled by default. Hardly anybody uses
it. There were suggestions to remove it completely.

Anyway, it needs to be fixed (in NB 5.1) or the panel must be removed.
Comment 3 Ken Frank 2007-05-26 19:11:41 UTC
v