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 10851

Summary: [Win2K NB 3.2.15] Generated code from form does create invalid gridbagConstraints
Product: guibuilder Reporter: javaiware <javaiware>
Component: CodeAssignee: issues@guibuilder <issues>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description javaiware 2001-03-30 00:53:26 UTC
Hi,

When I set the layout of a panel to gridbag the all code but the declaration of 
the gridbagConstraints is created.

This is the code that was created:

        jLabel1.setText("ID:");
        gridBagConstraints4 = new java.awt.GridBagConstraints();
        gridBagConstraints4.gridx = 0;
        gridBagConstraints4.gridy = 0;
        gridBagConstraints4.insets = new java.awt.Insets(1, 1, 1, 1);
        gridBagConstraints4.anchor = java.awt.GridBagConstraints.EAST;
        tabCookies.add(jLabel1, gridBagConstraints4);

this is what should have been created:

        jLabel1.setText("ID:");
        java.awt.GridBagConstraints gridBagConstraints4;
        gridBagConstraints4 = new java.awt.GridBagConstraints();
        gridBagConstraints4.gridx = 0;
        gridBagConstraints4.gridy = 0;
        gridBagConstraints4.insets = new java.awt.Insets(1, 1, 1, 1);
        gridBagConstraints4.anchor = java.awt.GridBagConstraints.EAST;
        tabCookies.add(jLabel1, gridBagConstraints4);

Iwan
Comment 1 Svata Dedic 2001-03-30 05:58:40 UTC
Form generators, it could be your problem. If not, please reassign it back. Thx.
Comment 2 Tomas Pavek 2001-03-30 12:07:36 UTC
Same as issue #10831, already fixed.

*** This issue has been marked as a duplicate of 10831 ***
Comment 3 Quality Engineering 2003-06-30 18:20:57 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-06-30 18:25:58 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.