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.
NB 4.2 dev build 20050815 When I resized component I got stream of NPEs. After closing form the stream continued until the shutdown of whole IDE. The stream can be caused by another exception which occure earlier in the log, but the NPEs were produced so quickly I couldn't notice it properly. Steps to reproduce: 1) open attached 2) select the JTree 3) resize it to the right side to overlap first letters from labels java.lang.NullPointerException at javax.swing.OverlayLayout.preferredLayoutSize(OverlayLayout.java:110) at java.awt.Container.preferredSize(Container.java:1558)
Created attachment 23809 [details] form file
Created attachment 23810 [details] java file
Created attachment 23811 [details] messages.log
Seems to be fixed after last changes. Likely same cause as issue 62276 or issue 62265.
verified
Reopen - AssertionError - LayoutRegion.overlap(LayoutRegion.java:323) is thrown Steps: - open an attached file - move jLabel8 bellow JLabel6 and jTextField4 bellow jTextField3 - resize JPanel by the attached snapshot; firstly in the horizontal direction => an attached exception is thrown when you resize verticaly
Created attachment 24152 [details] Exception
Created attachment 24153 [details] Snapshot
I get an exception the same as the intial exception, with similar problems. I had to close the IDE to stop the null pointer exceptions.
Created attachment 24659 [details] The NPE Exception from the exception box
I've repeated Marek's steps and got another exception. This hapends when the JPanel is resized vertically so its bottom edge matches bottom of one of the tree buttons in the left-bottom part of the form. java.lang.RuntimeException: Error occured. Use undo to return to the last good state. at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.createLayout(SwingLayoutBuilder.java:137) at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.setupContainerLayout(SwingLayoutBuilder.java:73)
Created attachment 24752 [details] RuntimeException
Increasing priority, because this situation leads to large number of exceptions. The form editor doesn't have to be some complex. I will attach lighter version. Try to add JLabel in front of the JTextField4. It will break the layout and then try to fix the layout by shifting with those components.
Created attachment 24803 [details] java file
Created attachment 24805 [details] form file
Exceptions starts to pop up after resizing the panel towards lower part and releasing the mouse when the panel snaps to the horizontal line between textfields and labels.
The last mentioned exceptions seem fixed in today build.
Integrated into release50_beta branch.
Changed files: http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutDesigner.java?r1=1.48&r2=1.49 http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutDragger.java?r1=1.14&r2=1.15 http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutFeeder.java?r1=1.21&r2=1.22 http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutInterval.java?r1=1.15&r2=1.16 http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutOperations.java?r1=1.16&r2=1.17 http://form.netbeans.org/source/browse/form/src/org/netbeans/modules/form/layoutdesign/LayoutUtils.java?r1=1.5&r2=1.6