Menu

#18 Vertical BoxLayout not generated correctly in Swing

open
nobody
None
5
2004-07-30
2004-07-30
No

Operating mode:
1. Create a new v4all file
2. Add a JFrame in the GUI editor
3. Add a JPanel in that JFrame
4. In the properties pane, in the category Container,
in the field Layout, choose BoxLayout
5. In the properties pane, in the category Container,
in the field Layout Axis, choose Y_AXIS
6. Click on the button Generate code for Swing
7. Open the class Gui_1 (or the name you gave to the
v4al file)

Expected result:
In the method getPanel100, there is a line:
ivjPanel100.setLayout(new
javax.swing.BoxLayout(ivjPanel100,
javax.swing.BoxLayout.Y_AXIS));

In the method getPanel100, there is the line:
In the method getPanel100, there is a line:
ivjPanel100.setLayout(new
javax.swing.BoxLayout(ivjPanel100,
javax.swing.BoxLayout.X_AXIS));

Note: this is the axis that is wrong in the generated code.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB