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.
Product Version: NetBeans IDE Dev (Build 070806) 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: ============ have JDA project with two new buttons 1. open AE from action property for jbutton1 2. create new action for this button and close AE 3. open the same AE again and press Reset to Default button then no action is assigned to jbutton1 4. open AE for jbutton2 from action property as it was done in step 1 5. choose previously created action and press OK at this time this action is assigned for jbutton2 - correct but for jbutton1 as well - incorrect
For some reason the ActionManager tries to update the action for all bound components - and the first button is still (incorrectly) in the bound components list for the action.
If the user selects 'null' for the action value then setAsText will be called with 'null'. However, if the user selects 'Reset to default', which also sets the action to null, it doesn't work. This is because 'Reset to default' doesn't call the setAsText or setValue method on the ActionEditor. Instead, it appears to completely bypass the property editor, which means that the ActionEditor code never has a chance to update the values and remove the binding. This makes it almost impossible to fix this bug.
Hacked to work. Modified file: http://hg.netbeans.org/main?cmd=changeset;node=c44409cf8d09
verified on Product Version: NetBeans IDE Dev (Build 20080905031732) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)