Summary of Chapter 1 :

Chapter 1.2

Chapter 1.1

ABSTRACT WINDOW TOOLKIT
(AWT)

Frame is the basis to contain other user interface
components in Java graphical applications.

A package (java.awt) that contains classes to bulit Graphical User Interfaces (GUI).

A set of native user interface components

  • A robust event-handling model
  • Graphics and imaging tools, including shape, color, and font classes.
  • Layout managers, for flexible window layouts that do not depend on a particular window size or screen resolution
  • Data transfer classes, for cut-and-paste through the native platform clipboard

AWT & Swing Relationship

A more recent set GUI interfaces called Swing extends the AWT so that the programmer can create generalized GUI objects that are independent of a specific operating system's windowing system.

AWT VS Swing

Package of AWT

Provides classes for AWT API such as :

TextField

Label

TextArea

RadioButton

CheckBox

Choice

List

ETC

Features of AWT :

Heavyweight

Platform-dependent

AWT HIERARCHY

Frame :

A top-level window with a title & a border

Dialog

Can be moved but often can't be resized.

Applet

Small Application that performance specific tasks that runs within the scope of a larger program,often as a plug-in

THE METHODS

setDefaultCloseOperation()

setSize()

setVisible()

setLocation(x,y)

FRAME LOCATION

displayed in the upper-left
corner of the screen.

MenuBar

Displays a lists of top-level menu choices

AWT Component

AWT Containner

AWT Menu Component