Java Reference
In-Depth Information
800
Step 3 Identify layouts for each group.
When components are arranged horizontally, choose a flow layout. When
components are arranged vertically, use a grid layout. The grid in this layout has
as many rows as there are components, and it has one column.
In the pizza user interface example, you would choose
ȗ A (3, 1) grid layout for the radio buttons
ȗ A (2, 1) grid layout for the check boxes
ȗ A flow layout for the label and text field
Step 4 Group the groups together.
Look at each group as one blob, and group the blobs together into larger groups,
just as you grouped the components in the preceding step. If you note one large
blob surrounded by smaller blobs, you can group them together in a border
layout.
You may have to repeat the grouping again if you have a very complex user
interface. You are done if you have arranged all groups in a single container.
For example, the three component groups of the pizza user interface can be
arranged as follows:
ȗ A group containing the first two component groups, placed in the center of
a container with a border layout
ȗ The third component group, in the southern area of that container
Search WWH ::




Custom Search