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 72797 - I18N: mnemonic key is always set to the first character
Summary: I18N: mnemonic key is always set to the first character
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-02-18 06:38 UTC by Masaki Katakai
Modified: 2006-08-23 13:31 UTC (History)
2 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 Masaki Katakai 2006-02-18 06:38:26 UTC
The actual GUI label.chatAt(0) is used in setDisplayedMnemonic() so the first
character is always used as mnemonic.

web/struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java

jLabelPath.setDisplayedMnemonic(org.openide.util.NbBundle.getMessage(ActionPanelVisual.class,
"LBL_ActionPath").charAt(0));

Here "LBL_ActionPath_mnem" should be used instead of the actual label.
"LBL_ActionPath_mnem"is already provided in properfiles file.
Comment 1 Petr Pisl 2006-07-26 15:46:55 UTC
Checking in ActionPanelVisual.form;
/cvs/web/struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.form,v
 <--  ActionPanelVisual.form
new revision: 1.2.4.1.2.1; previous revision: 1.2.4.1
done
Checking in ActionPanelVisual.java;
/cvs/web/struts/src/org/netbeans/modules/web/struts/wizards/ActionPanelVisual.java,v
 <--  ActionPanelVisual.java
new revision: 1.2.4.3.2.2; previous revision: 1.2.4.3.2.1
done
Comment 2 Pavel Rehak 2006-08-23 13:31:47 UTC
Verified.