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 5058 - Switching the Current card property of CardLayout issues an .IllegalArgumentException:
Summary: Switching the Current card property of CardLayout issues an .IllegalArgument...
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P2 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-12-20 23:47 UTC by Jan Palka
Modified: 2002-07-19 15:19 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 1999-12-20 23:47:15 UTC
According to the synopsys: switch the property but you must have Design mode turned on (it`s by default)

java.lang.IllegalArgumentException: wrong parent for CardLayout
        at java.awt.CardLayout.checkLayout(CardLayout.java:322)
        at java.awt.CardLayout.show(CardLayout.java:433)
        at com.netbeans.developerx.loaders.form.formeditor.layouts.DesignCardLayout$4.setValue(DesignCardLayout.java:325)
        at org.openide.explorer.propertysheet.PropertyDetails.setPropertyValue(PropertyDetails.java:184)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setPropertyValue(PropertyDisplayer.java:723)
        at org.openide.explorer.propertysheet.PropertyDisplayer.setAsText(PropertyDisplayer.java:693)
        at org.openide.explorer.propertysheet.PropertyDisplayer.rolling(PropertyDisplayer.java:670)
        at org.openide.explorer.propertysheet.PropertySheet$SheetListener.sheetButtonClicked(PropertySheet.java:1116)
        at org.openide.explorer.propertysheet.SheetButton.notifySheetButtonListenersAboutClick(SheetButton.java:383)
        at org.openide.explorer.propertysheet.SheetButton.mouseReleased(SheetButton.java:453)

        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:3717)
        at java.awt.Component.processEvent(Component.java:3546)
        at java.awt.Container.processEvent(Container.java:1163)
...
Comment 1 Jan Stola 2000-07-27 17:53:59 UTC
Bug assigned to the module owner.