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.
I have a test case, in which no component could be added to a form. An exception ( java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutRegion.overlap(LayoutRegion.java:314) at org.netbeans.modules.form.layoutdesign.LayoutDragger.scanLayoutForNextTo(LayoutDragger.java:437) at ...) always occures. Steps to reproduce this test case: ---------------------------------- 0) Have a fresh userdirectory. 1) Open the project in the attachement via the "File->Open Project" command. 2) In package formstudy, double-click the Frame3.java to open it. 3) Try to add a new component (eg. a JButton). 4) The exception pops-up. System Specs: ------------ NB 4.2dev 200505081800 /form_prototype/20050509 j2sdk1.4.2_05 I'm ataching the project and a screeenshot.
Created attachment 22034 [details] project, gzipped
Created attachment 22035 [details] screenshot
Created attachment 22036 [details] messages.log file
The only workaround is to start the form again from scratch. This is complete data loss, thus increasing priority to P1.
The attached form is already in a wrong state. Looking at the generated code, there is a snippet: .add(68, 68, 68) .add(12, 246, Short.MAX_VALUE)) This means two consecutive gaps at the trailing end of the vertical layout which is wrong. Marking as duplicate of issue 58695, but feel free to reopen if you are able to reproduce how to obtain this state (we will check whether it is really caused by the same bug as issue 58695). *** This issue has been marked as a duplicate of 58695 ***
Verified duplicate.