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 111462 - RES:Not possible to set mnemonic by "&"
Summary: RES:Not possible to set mnemonic by "&"
Status: RESOLVED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-31 12:42 UTC by Jana Maleckova
Modified: 2011-09-07 15:15 UTC (History)
0 users

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 Jana Maleckova 2007-07-31 12:42:45 UTC
Product Version: NetBeans IDE Dev (Build 070731) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b03 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
Actions created with JDA has set mnemonic in text by special character "&" ... e.g. action show about box: in resource
bundle there is key with value: showAboutBox.Action.text = &About... and every control, which has assigned this action,
displays only text "About..." in design, thats correct. 
Other case is when user wants to set mnemonic for new action. 
Open AE and create action and set action's text as "&Test". Ampersand is always displayed in design (different from
showAboutBox action), only when JDA is run, text of component is correct (without "&") and mnemonic is functional.

I can have wrong use case but I test e.g. editing resource bundle directly and the behavior is the same.
Comment 1 Tomas Pavek 2007-09-10 14:13:34 UTC
The '&' character is only shown after entered; when the form is reloaded it is no more shown. Unfortunately it is not
shown in the properties (action editor) either - so the user does not know if/what mnemonic is set. The app framework
extratcs the '&' char from the text (when read from resource map) and sets special properties on action.

We should fix both - 1) not to show '&' in design after entered in action editor, 2) always show '&' in the action editor.
Comment 2 Jan Stola 2011-09-07 15:15:02 UTC
NetBeans support of Swing Application Framework has been discontinued => I am closing this issue as 'will not fix'.