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 7.0 M2 (Build 201010151251) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Windows 7 User Comments: AlyonaStashkova: Moved button to another cell within GridBag Customizer GUEST: GridBagLayout > Change Panel Anchor to PageStart AlyonaStashkova: Invoked GridBag Customizer, selected the table, moved the upper border down (the table did not resize), moved the bottom border up (the table did not resize), got an exeption GUEST: GridBagLayout Customizer Dialog -> Chang Fill Property to Fill Horizontal AlyonaStashkova: tried to expand button within GridBad to occupy more than one cell Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutsupport.griddesigner.AnimationLayer.createContainerImage(AnimationLayer.java:185) at org.netbeans.modules.form.layoutsupport.griddesigner.AnimationLayer.animate(AnimationLayer.java:166) at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane$GridActionWrapper.actionPerformed(GlassPane.java:1306) at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane.performAction(GlassPane.java:938) at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane.updateLayout(GlassPane.java:216) at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner$5$1.run(GridDesigner.java:378)
Created attachment 102539 [details] stacktrace
I am able to reproduce this exception in NetBeans 7.0 M2 using the following steps: 1. Create JFrame. 2. Set frame's layout to GridBagLayout. 3. Add JButton. 4. Invoke Customize Layout on the frame. 5. Select the button in the customizer. 6. Close the customizer. 7. Open the customizer again. 8. Move the button into another cell => exception is thrown.
The same steps performed in the latest development build no longer lead to the exception. The exception was caused by customizer's listener that was not unregistered when the customizer was closed. This was fixed in http://hg.netbeans.org/core-main/rev/10b7a030f4ef