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.
The scenario: Editing visual containers in non-visual form does not work (due to exceptions). E.g. create a bean form based on java.lang.Object. Creation fails on exception - palette does not appear. Switching on another opened form and back helps. But adding a panel leads to another exception. Showing the panel in designer works somehow, but adding component to panel leads to exception in selection painting. I think I don't need to attach all these exceptions here ;) This scenario should work. The problem is that the new layout support is not initialized for non-visual forms.
Fixed in trunk. Diff: http://form.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=3501
And also: http://form.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=3504
I have reviewed the fix and it seems to solve the issue correctly.
Verified in the build 200601051900 (trunk).
Fixed also in 5.0. /cvs/form/src/org/netbeans/modules/form/FormDesigner.java new revision: 1.172.2.2; previous revision: 1.172.2.1 /cvs/form/src/org/netbeans/modules/form/FormEditorSupport.java new revision: 1.191.2.3; previous revision: 1.191.2.2 /cvs/form/src/org/netbeans/modules/form/FormModel.java new revision: 1.63.2.1; previous revision: 1.63 /cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java new revision: 1.156.2.2; previous revision: 1.156.2.1 /cvs/form/src/org/netbeans/modules/form/HandleLayer.java new revision: 1.133.2.1; previous revision: 1.133