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 6676 - Pasting a visual bean, which has set a layout, throws an exception
Summary: Pasting a visual bean, which has set a layout, throws an exception
Status: CLOSED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-13 21:30 UTC by Jan Palka
Modified: 2003-06-30 18:26 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 Jan Palka 2000-05-13 21:30:09 UTC
1) create a bean inherited from JPanel

2) set layout to GridBagLayout
3) add to Component palette
4) add this bean into a form
(note: the Form Editor generate Class.setLayout not user)
Build 501 is OK.  Reported against 831

java.lang.Error: Do not use Test.setLayout() use Test.getContentPane().setLayout
() instead
        at javax.swing.JFrame.createRootPaneException(JFrame.java:406)
        at javax.swing.JFrame.setLayout(JFrame.java:472)
        at org.netbeans.modules.form.compat2.layouts.DesignBorderLayout.setRADCo
ntainer(DesignBorderLayout.java:106)
        at org.netbeans.modules.form.RADVisualContainer.setDesignLayout(RADVisua
lContainer.java:93)
        at org.netbeans.modules.form.FormManager2$ManagerMouseAdapter.mouseRelea
sed(FormManager2.java:1347)
        at org.netbeans.modules.form.FormManager2$MouseProcessor.mouseReleased(F
ormManager2.java:939)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)

        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)

     ...
Comment 1 Marek Grummich 2000-07-25 09:23:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-06-30 18:20:52 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-06-30 18:26:35 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.