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.
When rename a form, all generated codes would automatically be updated (renamed). You only need to rename stuffs that you write. That is the case when you have your settings set to generate anonymous class for events. But if you choose 1 inner class to handle all of the events, it will not rename the class in generated event code. So you cannot change them either (it's uneditable code). The trick is to change the preference back, and rename, and change preference back again.
Theoretically, name of the form class can be generated in more places, not only in the inner event dispatcher class. Ideally, the form should be regenerated when renamed. But this is hardly possible if the form is closed. In such case, the form should be regenerated on opening - but how to know it was renamed before, so it needs regeneration? We should not force regeneration everytime the form opens just because this possibility. So maybe ignore this case (don't care about renaming closed forms)?
Fixed in trunk. Only the case the form is opened. http://www.netbeans.org/source/browse/form/src/org/netbeans/modules/form/FormDataObject.java.diff?r1=1.37&r2=1.38 http://www.netbeans.org/source/browse/form/src/org/netbeans/modules/form/FormEditorSupport.java.diff?r1=1.117&r2=1.118 Different fix is needed for proj40_prototype (depends on issue 27180).
Verified