3. AWT (Abstract Window Toolkit)
AWT – The Abstract Window Toolkit provides basic graphics tools
(tools for putting information on the screen).
AWT contains numerous classes and methods that allow you to create and
manage applet windows and standard windows that run in a GUI environment,
such as Windows The AWT classes are contained in the java.awt package.
The AWT defines windows based on a class hierarchy that adds functionality at
each level. The two most common windows are those derived from Panel used
by applets and Frame that creates standard windows.
3
4. Container – a graphic element that can hold other
graphic elements (and is itself a Component).
The container class is an abstract subclass of Component. The class is
responsible for laying out any components it contains through using
various layout managers.
Component – a graphic element (such as a Button or a
TextArea) provided by a graphics toolkit.
Component is an abstract class that encapsulates all of the user
interface elements that are displayed on the screen and that interact
with the user.
Containers & Components4
5. Containers & Components
The job of a Container is to hold and display Components
Some common subclasses of Component are Button,
Checkbox, Label, Scrollbar, TextField , and TextArea
A Container is also a Component
This allows Containers to be nested
Some Container subclasses are Panel (and Applet), Window,
and Frame
5