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 23680 - Add JOptionPane into JDialog throws Exception
Summary: Add JOptionPane into JDialog throws Exception
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Other Other
: P4 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-17 12:54 UTC by Richard Malaschitz
Modified: 2003-06-30 18:32 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 Richard Malaschitz 2002-05-17 12:54:31 UTC
Scenario:
* New -> Gui Forms --> JDialog
* Add JOptionPane is succesfull 
but it throws Exception:

Annotation: Initialization of the 
container layout support failed.
Just a limited basic support will be 
used.
Annotation: Cannot initialize layout for non-empty 
container.
The default container instance cannot contain any 
components.
java.lang.IllegalArgumentException
        at 
org.netbeans.modules.form.layoutsupport.LayoutSupportManager.initializeLayoutDelegate(LayoutSupportManager.java:132)
 
       at 
org.netbeans.modules.form.MetaComponentCreator.addVisualComponent(MetaComponentCreator.java:551)
 
       at 
org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent(MetaComponentCreator.java:277)
 
       at 
org.netbeans.modules.form.MetaComponentCreator.createComponent(MetaComponentCreator.java:100)
 
       at 
org.netbeans.modules.form.HandleLayer$HandleLayerMouseListener.mousePressed(HandleLayer.java:1062)
 
       at java.awt.Component.processMouseEvent(Component.java:5018)
        
at java.awt.Component.processEvent(Component.java:4818)
        at 
java.awt.Container.processEvent(Container.java:1380)
        at 
java.awt.Component.dispatchEventImpl(Component.java:3526)
        at 
java.awt.Container.dispatchEventImpl(Container.java:1437)
        at 
java.awt.Component.dispatchEvent(Component.java:3367)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
 
       at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2926)
 
       at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
 
       at java.awt.Container.dispatchEventImpl(Container.java:1423)
        
at java.awt.Window.dispatchEventImpl(Window.java:1566)
        at 
java.awt.Component.dispatchEvent(Component.java:3367)
[catch] 
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
 
       at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
 
       at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 
       at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
 
       at 
java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Comment 1 Tomas Pavek 2002-05-17 14:30:14 UTC
Similar for JTextPane...
Comment 2 Tomas Pavek 2002-05-20 17:44:23 UTC
Fixed.
Comment 3 Richard Malaschitz 2002-10-17 12:40:01 UTC
Verified in 200210160100
Comment 4 Quality Engineering 2003-06-30 18:32:49 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.