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 191751 - [70cat] NullPointerException at org.netbeans.modules.form.layoutsupport.griddesigner.GridDesigner.haveIdenticalLayoutDelegate
Summary: [70cat] NullPointerException at org.netbeans.modules.form.layoutsupport.gridd...
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 191784 191879 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-09 04:31 UTC by marti1125
Modified: 2010-11-12 07:11 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marti1125 2010-11-09 04:31:46 UTC
[ 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)
Comment 1 Marian Mirilovic 2010-11-10 11:30:16 UTC
*** Bug 191784 has been marked as a duplicate of this bug. ***
Comment 2 Jan Stola 2010-11-12 05:49:52 UTC
*** Bug 191879 has been marked as a duplicate of this bug. ***
Comment 3 Jan Stola 2010-11-12 06:51:07 UTC
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.
Comment 4 Jan Stola 2010-11-12 07:11:21 UTC
Fixed.

Modified file: http://hg.netbeans.org/core-main/rev/81d07f0e1223