您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 20

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.

Back to top

basicline.gif (170 bytes)