Java Reference
In-Depth Information
Step 1 Make a sketch of your desired component layout.
Draw all the buttons, labels, text fields, and borders on a sheet of paper. Graph
paper works best.
Here is an exampleȌa user interface for ordering pizza. The user interface
contains
ȗ Three radio buttons
ȗ Two check boxes
ȗ A label: ȒYour Price:ȓ
ȗ A text field
ȗ A border
Step 2 Find groupings of adjacent components with the same layout.
Usually, the component arrangement is complex enough that you need to use
several panels, each with its own layout manager. Start by looking at adjacent
components that are arranged top to bottom or left to right. If several
components are surrounded by a border, they should be grouped together.
Here are the groupings from the pizza user interface:
799
Search WWH ::




Custom Search