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 20111006-78c27130e457) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Linux User Comments: hmichel: Removing space around components Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutInterval.setMaximumSize(LayoutInterval.java:185) at org.netbeans.modules.form.layoutdesign.LayoutInterval.setSizes(LayoutInterval.java:202) at org.netbeans.modules.form.layoutdesign.LayoutModel.setIntervalSize(LayoutModel.java:488) at org.netbeans.modules.form.layoutdesign.LayoutDesigner.setIntervalSize(LayoutDesigner.java:4785) at org.netbeans.modules.form.layoutdesign.LayoutModel.setUserIntervalSize(LayoutModel.java:471) at org.netbeans.modules.form.actions.CustomizeEmptySpaceAction$EmptySpaceCustomizer.applyValues(CustomizeEmptySpaceAction.java:329)
Created attachment 111673 [details] stacktrace
I am sorry, I am not able to reproduce this issue and the attached stack-trace is not sufficient to track the problem down. Are you still able to reproduce it? If so, could you, please, provide more details? It would be ideal to attach the problematic form (both .java and .form files) saved in the last good state and describe _exact_ steps that lead to the exception. Thank you in advance.
Actually this can happen when an empty space (gap) in the layout is defined as e.g. 100, 100, 100 instead of the usual use_pref, 100, use_pref and then trying to set it to default in the empty space customizer. Not sure how to create such gap setting, but it is valid. (For reproducibility can manually-edit the form file.) Bug in LayoutModel.setUserIntervalSize().
The combination 100,100,100 is in fact considered undesirable, but probably may occur. Anyway, this case is easy to fix in LayoutModel.setUserIntervalSize().
Created attachment 111896 [details] Project that exhibits the error. 1) Open attached project. 2) Open NewJFrame.java in Design View. 3) Highlight jSplitPane1, right click, choose "Space Around Component". 4) Set Left:Default Small, Right:Default, Top:Default, Bottom:Default Small. 5) Click "OK". This AssertionError is thrown.
Fixed. http://hg.netbeans.org/jet-main/rev/937f46c19f18
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/937f46c19f18 User: Tomas Pavek <tpavek@netbeans.org> Log: #203321: maximum size can't be default, also trying to make sure any explicit size is not used as maximum