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.
Found hard-coded mnemonics in the file projects/src/org/netbeans/modules/projects/ProjectManagerPanel.java newButton.setMnemonic('N'); importButton.setMnemonic('I'); importButton.setMnemonic('I'); saveAsButton.setMnemonic('V'); deleteButton.setMnemonic('D'); ... Thanks to Tom Ball who discovered
OK, what is the problem with hard-coded mnemonics? How do I have to fix it? Just point me to some spec describing this, if there is any. Thanks.
> OK, what is the problem with hard-coded mnemonics? The problem is that noone can localize it ;( > How do I have to fix it? > Just point me to some spec describing this, if there is any. instead of: newButton.setText("New"); newButton.setMnemonic('N'); use: org.openide.awt.Actions.setMenuText(newButton,"&New",true); // where "&New" is got from a bundle doc: http://www.netbeans.org/devhome/docs/i18n/index.html (it's a bit old ;( )
fixed in main trunk org/netbeans/modules/projects/Bundle.properties: 1.59; org/netbeans/modules/projects/ProjectManagerPanel.form: 1.15; org/netbeans/modules/projects/ProjectManagerPanel.java: 1.35;
Verified.