Java Reference
In-Depth Information
to accomplish a task, and be consistent in GUI layout and coloring
schemes.
SR 7.27
A good user interface design is very important because to the user, the
interface is the program. Since it is the only way the user interacts with
the program, in the user's mind the interface represents the entire pro-
gram.
7.11 Layout Managers
SR 7.28
A layout manager is consulted whenever the visual appearance of its
components might be affected, such as when the container is resized or
when a new component is added to the container.
SR 7.29
Flow layout attempts to put as many components on a row as possible.
Multiple rows are created as needed.
SR 7.30
Border layout is divided into five areas: North, South, East, West, and
Center. The North and South areas are at the top and bottom of the
container, respectively, and span the entire width of the container.
Sandwiched between them, from left to right, are the West, Center, and
East areas. Any unused area takes up no space, and the others fill in as
needed.
SR 7.31
A glue component in a box layout dictates where any extra space in the
layout should go. It expands as necessary, but takes up no space if there
is no extra space to distribute.
7.12 Borders
SR 7.32
The BorderFactory class contains several methods used to create bor-
ders that can be applied to components.
SR 7.33
The border types presented in this section are: empty—buffering space
only, line—a simple line, etched—etched groove, bevel—component
appears raised or sunken, titled—text title, matte—edges may have
separate sizes, and compound—a combination of two borders.
7.13 Containment Hierarchies
SR 7.34
The containment hierarchy for a GUI is the set of nested containers and
the other components they contain. The containment hierarchy can be
described as a tree.
Search WWH ::




Custom Search