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.

Bug 242409

Summary: IllegalArgumentException at org.netbeans.modules.form.layoutsupport.griddesigner.GridBagManager.<init>
Product: guibuilder Reporter: jgawera <jgawera>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: jgawera
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208009
Attachments: stacktrace

Description jgawera 2014-02-27 10:59:47 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
jgawera: Added a buton to a form then went to "Customise layout"




Stacktrace: 
java.lang.IllegalArgumentException
   at org.netbeans.modules.form.layoutsupport.griddesigner.GridBagManager.<init>(GridBagManager.java:104)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner.configureGridManager(GridDesigner.java:332)
   at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner.setDesignedContainer(GridDesigner.java:267)
   at org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport.getSupportCustomizer(GridBagLayoutSupport.java:121)
   at org.netbeans.modules.form.layoutsupport.LayoutSupportManager.getSupportCustomizer(LayoutSupportManager.java:521)
   at org.netbeans.modules.form.layoutsupport.LayoutNode.createCustomizer(LayoutNode.java:139)
Comment 1 jgawera 2014-02-27 10:59:49 UTC
Created attachment 145633 [details]
stacktrace
Comment 2 Tomas Pavek 2015-09-16 13:08:23 UTC
Can you provide more information about the form where the exception happened? Ideally, can you attach it here? The exception means that there was no GridBagLayout on given container - but then it should not be possible to invoke the Customize Layout action. There is likely something special with your form. We need to debug the case to find out what is happening there. Thanks