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 93320 - Action Editor - problems with icons
Summary: Action Editor - problems with icons
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 13:31 UTC by Jana Maleckova
Modified: 2007-04-17 12:42 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-01-26 13:31:42 UTC
NetBeans IDE Dev (Build 070126)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252

Description:
============
Icons are not added to new created actions.
1. hav JDA - basic
2. insert jButton
3. invoke action editor a press "New Action" button
4. fill your action, OK
5. fill text property and click on icon by mouse
6. select image within project - e. g. new.png and confirm for twice
no image was added to action

cmd reports: 
creating a new action
method name field = p1
creating new method with the name: p1
creating with scope: Form
this key 'IconName' doesn't exist. skipping
this key 'SmallIconName' doesn't exist. skipping
this key 'LargeIconName' doesn't exist. skipping
this key 'AcceleratorKey' doesn't exist. skipping
this key 'BlockingDialog.message' doesn't exist. skipping
this key 'BlockingDialog.title' doesn't exist. skipping

in resources, there is no key as well which should define icon for created action.
Comment 1 Joshua Marinacci 2007-01-29 21:42:43 UTC
The IconButtonListener is saving the icon properties using a reference to the currently selected action in 
the combobox rather than the newly created action.  Changing getSelectedAction() to return the right 
action fixes this bug.
Comment 2 Jana Maleckova 2007-01-31 15:58:18 UTC
icons are now remembered but there is another issue described in issue 93606. 
I will verified it when promoH is merged into trunk
Comment 3 Jana Maleckova 2007-04-17 12:42:18 UTC
verified on 
NetBeans IDE Dev (Build 20070417-0448)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_GB (nb); Cp1252