JDK 1.1 awt Tutorial

25/02/98


Click here to start


Table of Contents

JDK 1.1 awt Tutorial

Overview

Packages

The widgets

The awt Component class hierarchy

Menus in the awt

The awt Component class

Primitive awt Component subclasses

Composite awt Component subclasses

The Container subclasses

Widget nesting

Container organisation

A BorderLayout

A GridLayout

A Flow Layout

Component interaction

Events

Example

Handling Events

Event Listeners

Button press example

Conceptual model of Word sort

Design of the user interface

1. List the functions to be provided through the user interface.

2. Identify the sequence of user actions needed to invoke the functions.

3. Decide on the most appropriate widgets.

4. Design the desired window appearance.

5. Map desired appearance onto subwindows and layout managers

6. Design the dialogue between the user and the widgets involved in invoking the functions.

7. Integrate the user interface with the application.

Anatomy of the Word sort program

Presentation: Top-level Structure of Word sort

Presentation: The subwindows and widgets

Presentation: Organising the windows

Dialogue: WindowEvents 1

Dialogue: WindowEvents 2

Dialogue: WindowEvents 3

Dialogue: WindowEvents 4

Dialogue: ActionEvents 1

Dialogue: ActionEvents 2

Dialogue: ActionEvents 3

Dialogue: ItemEvents 1

Dialogue: ItemEvents 2

Dialogue: ItemEvents 3

Dialogue: MouseEvents 1

Dialogue: MouseEvents 2

Dialogue: MouseEvents 3

Summary

Author: pete sawyer

Email: sawyer@comp.lancs.ac.uk

Home Page: http://www.comp.lancs.ac.uk/computing/staff/sawyer.html