|
|
Container layouts
AWT container objects
The
objects described above (Button, Menu. etc.) do not normally contain other objects. However, AWT supports
classes whose objects can contain other objects. You will have seen at least
one of these already: the Applet class. In the AWT, all classes of this type
are subclasses of Container. A container object has no display of its own, but exists to
contain other objects.
One
of the most important of these is the Panel. A Panel is
simply a blank piece of screen into which other objects can be inserted. Panels
are often used in conjuction with the layout manager to create complex
displays, as described later.
Another
important subclass of Container
is the Frame, described below.
|
|