Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369317

Summary: Adding a JPanel to a CardLayout caused GUI to not be shown
Product: z_Archived Reporter: Anand Chelian <achelian>
Component: WindowBuilderAssignee: Project inbox <wb.swing-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
StackTrace and sample file none

Description Anand Chelian CLA 2012-01-21 14:30:53 EST
Build Identifier: 20110615-0604

NullPointer exception caused by not having components inside a CardLayout. Should be obvious from the stack trace in the attached file.

Reproducible: Didn't try

Steps to Reproduce:
1.Create a JFrame
2.Put a JSplitPane in contentPane
3.Put a JPanel in right side of the JSplitPane
4.Set the layout to CardLayout
5.Try to add JScrollablePane
Comment 1 Anand Chelian CLA 2012-01-21 14:32:08 EST
Created attachment 209874 [details]
StackTrace and sample file
Comment 2 Konstantin Scheglov CLA 2012-01-23 10:47:12 EST
Works for me with version from trunk.
Comment 3 Eric Clayberg CLA 2012-01-26 21:33:34 EST
Also works fine for me. According to your log, you are using an old version of WB, so please update to the latest build and try it again... http://eclipse.org/windowbuilder/download.php