Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369317 - Adding a JPanel to a CardLayout caused GUI to not be shown
Summary: Adding a JPanel to a CardLayout caused GUI to not be shown
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 14:30 EST by Anand Chelian CLA
Modified: 2021-06-04 16:44 EDT (History)
1 user (show)

See Also:


Attachments
StackTrace and sample file (14.50 KB, application/zip)
2012-01-21 14:32 EST, Anand Chelian CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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