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 # : 201011070000 ] [ JDK VERSION : 1.6.22 ] when i test GUI Builder set layout > grid bag layout, i rigth click in square void and them show this error. see this image => http://yfrog.com/evpantallazo3np java.lang.NullPointerException at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner.haveIdenticalL ayoutDelegate(GridDesigner.java:475) at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner.updateContextM enu(GridDesigner.java:444) at org.netbeans.modules.form.layoutsupport.griddesigner.GlassPane$Listener.mouseRel eased(GlassPane.java:1171) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:138) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269 ) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174 ) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
*** Bug 191784 has been marked as a duplicate of this bug. ***
*** Bug 191879 has been marked as a duplicate of this bug. ***
I am able to reproduce this exception using the following steps: 1. Create JFrame. 2. Change frame's layout to GridBagLayout. 3. Insert JPanel into the frame. 4. Ensure that panel's layout is Free Design. 5. Invoke Customize Layout action on the frame. 6. Right-click on the panel in the customizer => exception is thrown.
Fixed. Modified file: http://hg.netbeans.org/core-main/rev/81d07f0e1223