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 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)
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
*** Issue 112751 has been marked as a duplicate of this issue. ***
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.
This issue happens with all views. Fixed by disabling "floatable" toolbar.
verified build 20070912 beta 1