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 5057 - Card Layout - Error when Saving
Summary: Card Layout - Error when Saving
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:26 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:26:38 UTC
Create  a form with CradLayout
Create two tabs in the form and put a Panel into each of them
Put JLabels into these panels.
Switch the Card property of CardLayout to point to the second card.
Save the form. The exception should be thrown:
java.lang.ClassCastException: java.lang.String
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.saveLayout(GandalfPersistenceManager.java:730)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.saveContainer(GandalfPersistenceManager.java:673)
        at com.netbeans.developer.modules.loaders.form.GandalfPersistenceManager
.saveForm(GandalfPersistenceManager.java:654)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.saveFor
m(FormEditorSupport.java:412)
        at com.netbeans.developer.modules.loaders.form.FormEditorSupport.saveDoc
ument(FormEditorSupport.java:396)
        at org.openide.text.EditorSupport$SavingManager.save(EditorSupport.java:
1399)
        at org.openide.actions.SaveAction.performAction(SaveAction.java:47)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:89)

        at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:8
0)

        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14
50)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
ctButton.java:1504)
...

[pbuzek] if problem still persists please attach the form
Comment 1 Jan Stola 2000-07-27 17:53:59 UTC
Bug assigned to the module owner.