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 68327 - switch from AbsoluteLayout to GridBagLayout produced error
Summary: switch from AbsoluteLayout to GridBagLayout produced error
Status: RESOLVED DUPLICATE of bug 61384
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-09 06:13 UTC by wbrinkert
Modified: 2005-11-10 14:48 UTC (History)
0 users

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 wbrinkert 2005-11-09 06:13:09 UTC
Below is a list of errors encountered when I switched from AbsoluteLayout to
GridBagLayout.  The form design window will not open unless I switch back to
AbsoluteLayout.

java.lang.NullPointerException
	at javax.swing.OverlayLayout.preferredLayoutSize(OverlayLayout.java:110)
	at java.awt.Container.preferredSize(Container.java:1558)
	at java.awt.Container.getPreferredSize(Container.java:1543)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
	at java.awt.Container.layout(Container.java:1401)
	at java.awt.Container.doLayout(Container.java:1390)
	at java.awt.Container.validateTree(Container.java:1473)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validateTree(Container.java:1480)
	at java.awt.Container.validate(Container.java:1448)
	at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
[catch] at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Marian Mirilovic 2005-11-09 10:26:39 UTC
There is no line of the NB on the stack trace. Do you have another one? What
about message.log file located in your userdirectory, could you attach it here
as the file? 
Thanks in advance.
Comment 2 Jan Stola 2005-11-09 10:43:27 UTC
I am sorry I am not able to reproduce this issue. Could you, please, provide
more details? Does it happen generally or just for one specific form?
If the later case is true, could you, please, attach this form (saved
before the conversion to GridBagLayout). Thank you in advance.
Comment 3 Marian Mirilovic 2005-11-10 09:37:07 UTC
Here is the stack trace from reporter :

-----------------------------------------------
java.lang.ArrayIndexOutOfBoundsException: 512
	at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:903)
	at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:816)
	at java.awt.GridBagLayout.minimumLayoutSize(GridBagLayout.java:650)
	at java.awt.Container.minimumSize(Container.java:1598)
	at java.awt.Container.getMinimumSize(Container.java:1583)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
	at javax.swing.JRootPane$RootLayout.minimumLayoutSize(JRootPane.java:848)
	at java.awt.Container.minimumSize(Container.java:1598)
	at java.awt.Container.getMinimumSize(Container.java:1583)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
	at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:634)
	at java.awt.Container.minimumSize(Container.java:1598)
	at java.awt.Container.getMinimumSize(Container.java:1583)
	at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:634)
	at java.awt.Container.minimumSize(Container.java:1598)
	at java.awt.Container.getMinimumSize(Container.java:1583)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
	at java.awt.FlowLayout.minimumLayoutSize(FlowLayout.java:403)
	at java.awt.Container.minimumSize(Container.java:1598)
	at java.awt.Container.getMinimumSize(Container.java:1583)
	at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
	at javax.swing.OverlayLayout.checkRequests(OverlayLayout.java:236)
	at javax.swing.OverlayLayout.preferredLayoutSize(OverlayLayout.java:108)
	at java.awt.Container.preferredSize(Container.java:1558)
	at java.awt.Container.getPreferredSize(Container.java:1543)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
	at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
	at java.awt.Container.layout(Container.java:1401)
	at java.awt.Container.doLayout(Container.java:1390)
	at java.awt.Container.validateTree(Container.java:1473)
	at java.awt.Container.validate(Container.java:1448)
	at
javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
[catch] at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 4 Jan Stola 2005-11-10 14:48:05 UTC
It is a known problem (limitation of GridBagLayout) that is handled more
gracefully in the latest builds.

*** This issue has been marked as a duplicate of 61384 ***