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.
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.
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.
icons are now remembered but there is another issue described in issue 93606. I will verified it when promoH is merged into trunk
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