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.
Summary: | Hard-coded mnemonics | ||
---|---|---|---|
Product: | projects | Reporter: | _ mihmax <mihmax> |
Component: | Generic Infrastructure | Assignee: | issues@projects <issues> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | I18N |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ mihmax
2002-09-04 06:36:07 UTC
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. |