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

Bug 63833

Summary: BoxLayout - configuration errors
Product: z_Archived Reporter: Alasdair McDowell <alasdair_mcdowell>
Component: VEAssignee: Gili Mendel <gmendel>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: richkulp
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alasdair McDowell CLA 2004-05-25 08:57:10 EDT
Build: wsa-jdk-20040524_1918-WB300-AD-V60D-R3.zip

Related bugs:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=61870
https://bugs.eclipse.org/bugs/show_bug.cgi?id=62071

Test script:
http://dev.eclipse.org/viewcvs/indextools.
cgi/~checkout~/vep-home/WebContent/docs/testcases/test-zips/swing_layoutmanagers.
zip


Create a new JPanel.
Set the layout to BoxLayout(X_AXIS).
Save and close the file; reopen it.
The layout in the Properties view is "null".
IDE displays error: "layout: java.lang.IllegalArgumentException(Currently "this" 
is not supported)"

Generated code (which I think is legal):
  this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
Comment 1 Peter Walker CLA 2004-07-09 16:16:27 EDT
I think this is a parse tree allocation problem because this works when you
first switch to a boxlayout. When you do a reload though the error occurs and
the VM doesn't handle it.

This prevents BoxLayout from being supported in the VE.
Comment 2 Richard Kulp CLA 2004-07-09 16:51:56 EDT

*** This bug has been marked as a duplicate of 60001 ***
Comment 3 Peter Walker CLA 2005-01-10 12:37:04 EST
verified and closed for 1.0.2