Procedure
This scenario will test
out the features and behavior of the FlowLayout manager.
Setup
Create a new Visual Class extending JPanel and resize it to take up 3/4ths of
the Canvas. Set the layout of the JPanel to FlowLayout
Basic Canvas Manipulation
Choose the JButton bean
on the palette and drop it on the JPanel.
Verify
that the button is its default size, and placed centered horizontally and at the
top of the panel vertically.
Drop two or three
JSliders on to the JPanel
Verify
that when the width of the components on the row is greater than the width of
the JPanel, the spillover components are placed on another row.
Click and hold the
JButton. Move the cursor over the other components.
Verify
that a vertical black positioning bar is shown for all possible drop locations.
Drop the button between
two of the JSliders
Verify
that the button moves to the new location properly on the canvas, and the order
of the add statements in the source and beans view are updated.
Click and drag and drop
a bean in the Beans View to reorder the beans.
Verify
that the order of the add statements are changed and the canvas is updated
properly.
Change the order of the
add statements in the source.
Verify
that the component moves to the new location properly on the canvas, and the
beans view are updated.
Property Sheet
Select the JPanel
Verify
that the Layout property on the PS gives a value representing the FlowLayout
Verify
there's a + to expand the sub-properties of the Layout - alignment, horizontal
gap and vertical gap

Verify
that alignment has options for LEFT, CENTER and RIGHT
Verify
that changing the alignment to each value works correctly - each row is aligned
relative to the container according to the value
Verify
that changing the horizontal gap and vertical gap properties update the source
and the canvas correctly (establishes spacing between components).
Change the
componentOrientation property on the JPanel
Verify
the order in which the components are displayed on the canvas is reversed.
Change the alignment
property in the source (try both named constants and values 0, 1, 2)
Verify
the changes are reflected in the PS and on the canvas
Change the hgap and
vgap properties in the source.
Verify
the changes are reflected in the PS and on the canvas.
Conversions to FlowLayout
For each layout other
than FlowLayout