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.
Build: NetBeans IDE Dev (Build 201110100600) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows Vista User Comments: MackSix: Tried to horizontally size a jPanel with components on it down below a jEditorPane. Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateContainerGapResizing(LayoutDesigner.java:3941) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateContainerAfterChange(LayoutDesigner.java:3925) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:1259) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1153) at org.netbeans.modules.form.HandleLayer$ResizeComponentDrag.end(HandleLayer.java:2887) at org.netbeans.modules.form.HandleLayer$ComponentDrag.end(HandleLayer.java:2487)
Created attachment 111825 [details] stacktrace
Created attachment 111826 [details] Project that exhibits the error. 1) Open attached project. 2) Open NewJFrame.java. 3) Grab top of jPanel1 and try to pull vertically down to the large preferred distance from jEditorPane/jScrollPane above. (See attached screenshot) This error occurs. Product Version: NetBeans IDE Dev (Build 201110100600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Created attachment 111827 [details] Screenshot shows where to position top of jPanel1 Screenshot shows where to position top of jPanel1.
I am sorry, I am not able to reproduce this issue. I used the mentioned build 201110100600, JDK 7 on Windows and followed the mentioned steps but I didn't obtain any exception. Are you still able to reproduce it? Any chance that it was caused by some previous exception (that left NetBeans in some inconsistent state)?
I just downloaded this file and opened it in Product Version: NetBeans IDE Dev (Build 201110160600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) and it still causes the error with the steps described. On step 3), you are vertically resizing the jPanel1 and making it shorter when trying to snap in place. Maybe you tried to reposition the whole panel down and it did not cause the error. Please try again. Thanks
> Maybe you tried to reposition the whole panel down > and it did not cause the error. No, I tried the correct steps and they didn't lead to the exception on my computer, but when you confirmed that you are still able to reproduce this issue then I investigated this issue a bit more. Your screenshot shows that you are using larger fonts that I am using. So, I changed the default windows font to a larger one (using Control Panel > Display, from Smaller to Medium) and I was able to reproduce the exception using the described steps after that.
In Windows Vista, this is using the Control Panel>>Appearance and Personalization>>Personalization then on the left there is an option that says "Adjust font size (DPI)" If one chooses the "Custom DPI" scaling button and then un-checks "Use Windows XP style DPI Scaling" it is different type scaling that would have not caused this problem.
Fixed. http://hg.netbeans.org/jet-main/rev/c5b4aa121d15
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/c5b4aa121d15 User: Tomas Pavek <tpavek@netbeans.org> Log: #203480: on container resizing should try to remove only the ending gaps