What Is AWT (Abstract Windows Toolkit)

This section describes what is AWT (Abstract Windows Toolkit) - A Java package, java.awt.* that allows Java applications to operate graphical devices and create GUI (Graphical User Interfaces).

What Is AWT (Abstract Windows Toolkit)? AWT is a Java package, java.awt.* that allows Java applications to operate graphical devices and create GUI (Graphical User Interfaces).

The JDK documentation offers another description of AWT: "AWT contains all of the classes for creating user interfaces and for painting graphics and images. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. The Component class is the root of all AWT components. See Component for a detailed description of properties that all AWT components share."

The AWT package, java.awt.* was introduced in JDK 1.0. Later in JDK 1.2, the Swing package, javax.swing.*, was introduced to provide a richer API and hiding AWT behind a wrapper layer.

The AWT package contains following major class:

Last update: 1999.

Table of Contents

 About This Book

 JDK (Java Development Kit)

 Introduction of Java Swing Package

 Graphics Environment of the Local System

 JFrame - Main Frame Class

 JLabel - Swing Label Class

 JButton - Swing Button Class

 JRadioButton - Swing Radio Button Class

 JTextField - Swing Text Field Class

 Menu Bar, Menus, Menu Items and Listeners

 Creating Internal Frames inside the Main Frame

 Layout of Components in a Container

 LookAndFeel and UIManager

 Option Dialog Boxes

 JEditorPane - The Editor Pane Class

 SwingWorker - The Background Task Worker

AWT (Abstract Windows Toolkit)

What Is AWT (Abstract Windows Toolkit)

 HelloAWT.java - My First AWT Program

 Closing AWT Frame and Terminating Application

 Drawing Graphics - Using paint() on Frame or Component

 Creating Labels with java.awt.Label Class

 Creating Buttons with java.awt.Button Class

 AWT Button Action Handler at the Component Level

 AWT Button Action Handler at the Frame Level

 AWT Button Mouse Click Handler at the Frame Level

 AWT TextField and ActionListener

 MenuBarTest.java - AWT Menu Bar Test Program

 MenuTest.java - AWT Menu Test Program

 MenuItemTest.java - AWT Menu Item Test Program

 MenuItemActionListenerTest.java - AWT Menu Item Action Listener

 References

 Full Version in PDF/EPUB