Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 62071 - BoxLayout - wrong Container
Summary: BoxLayout - wrong Container
Status: CLOSED DUPLICATE of bug 61870
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Peter Walker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 07:22 EDT by Leopold Welsch CLA
Modified: 2011-06-13 11:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leopold Welsch CLA 2004-05-13 07:22:17 EDT
1) I create a Panel
2) Change it to BoxLayout (X_Axis)

=> This change is ignored anyhow and remains on FlowLayout

3) Put a Button in it
4) Chang it to BoxLayout (X_Axis)

=> code is generated like

jPanel3.setLayout(new BoxLayout(this,javax.swing.BoxLayout.X_AXIS)); 

causes a Java-Error:

java.awt.AWTError: BoxLayout can't be shared


the correct code should be:

jPanel3.setLayout(new BoxLayout(jPanel3,javax.swing.BoxLayout.X_AXIS));
Comment 1 Richard Kulp CLA 2004-05-25 16:16:02 EDT

*** This bug has been marked as a duplicate of 61870 ***
Comment 2 Peter Walker CLA 2005-01-10 12:36:59 EST
verified and closed for 1.0.2