Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 61870 - BoxLayout - wrong Container
Summary: BoxLayout - wrong Container
Status: CLOSED FIXED
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:
: 62071 69785 70628 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-12 05:39 EDT by Leopold Welsch CLA
Modified: 2011-06-13 11:37 EDT (History)
3 users (show)

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-12 05:39:31 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:03 EDT
*** Bug 62071 has been marked as a duplicate of this bug. ***
Comment 2 Peter Walker CLA 2004-07-12 09:44:18 EDT
*** Bug 69785 has been marked as a duplicate of this bug. ***
Comment 3 Richard Kulp CLA 2004-07-15 10:28:22 EDT
The code has been released to HEAD. (Actually was released on 7/10/2004)
Comment 4 Peter Walker CLA 2004-07-22 12:26:49 EDT
*** Bug 70628 has been marked as a duplicate of this bug. ***
Comment 5 Richard Kulp CLA 2004-07-31 11:19:34 EDT
1.0M2 is out, so these are now closed in M2.