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 110008 - IAE GridBagLayout- Layout Button
Summary: IAE GridBagLayout- Layout Button
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: David Kaspar
URL:
Keywords:
: 112751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-17 14:10 UTC by Fabiola Rios
Modified: 2007-09-13 15:00 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 Fabiola Rios 2007-07-17 14:10:27 UTC
build 20070716


Add and conect components to the Flow Design and press Layout Button from the Tool Bar, the follow exception appears:

java.lang.IllegalArgumentException: cannot add to layout: constraints must be a GridBagConstraint
	at java.awt.GridBagLayout.addLayoutComponent(GridBagLayout.java:685)
	at java.awt.Container.addImpl(Container.java:1068)
	at javax.swing.JToolBar.addImpl(JToolBar.java:561)
	at java.awt.Container.add(Container.java:366)
	at javax.swing.plaf.basic.BasicToolBarUI.setFloating(BasicToolBarUI.java:823)
	at javax.swing.plaf.basic.BasicToolBarUI.floatAt(BasicToolBarUI.java:1006)
	at javax.swing.plaf.basic.BasicToolBarUI$Handler.mouseReleased(BasicToolBarUI.java:1163)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 David Kaspar 2007-07-17 15:19:28 UTC
I am not sure about the root cause of the issue. The FlowDesigner does not use GridBagLayout at all. Maybe it is related
to issue in JDK:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4529655
Comment 2 David Kaspar 2007-08-14 17:02:19 UTC
*** Issue 112751 has been marked as a duplicate of this issue. ***
Comment 3 David Kaspar 2007-08-16 10:29:42 UTC
This happens when the toolbar in a Flow Design view is dragged out from the editor and then returned back to the
toolbar. The "dragging handle is invisible for user and it is located between "view" switch buttons and the toolbar icon
buttons.
Comment 4 David Kaspar 2007-08-16 10:33:01 UTC
This issue happens with all views.
Fixed by disabling "floatable" toolbar.
Comment 5 Fabiola Rios 2007-09-13 15:00:04 UTC
verified build 20070912 beta 1