Previous | Next | Trail Map | Creating a User Interface | Table of Contents


Overview of the Java UI

This lesson gives an overview of what the Java environment provides to help you create a user interface (UI). UI is a broad term that refers to all sorts of communication between a program and its users. UI is not only what the user sees, but what the user hears and feels. Even the speed with which a program interacts with the user is an important part of the program's UI. This lesson covers some Java classes that provide UI-related functionality. Eventually, we hope to provide a UI style guide, to give you more help with the art of designing a UI.

The Java environment provides classes for the following functionality:

Applets and applications commonly present information to the user (and invite the user's interaction) using a GUI. The Abstract Window Toolkit (AWT) contains a complete set of classes for writing GUI programs.

AWT Components

The AWT provides many standard GUI components such as buttons, lists, menus, and text areas. It also includes containers (such as windows and menu bars) and higher-level components (such as a dialog for opening or saving files).

Other AWT Classes

Other classes in the AWT include those for working with graphics contexts (including basic drawing operations), images, events, fonts, and colors.

The Anatomy of a GUI-Based Program

The AWT provides a framework for drawing and event handling. Using a program-specific hierarchy of containers and components, the AWT forwards events (such as mouse clicks) to the appropriate object. The same hierarchy determines the order in which containers and components draw themselves.


Previous | Next | Trail Map | Creating a User Interface | Table of Contents