My other sites

Latest News

 










Intermediate Level day 2 Part A

12/4/99


Click here to start


Table of Contents

Intermediate Level day 2 Part A

Aims

What is AWT?

Why AWT?

The AWT package

1. Components

PPT Slide

Basic objects: Component

Basic objects: Container

Component hierarchy

Other Components

JFC Components

Assembling parts

Containment model of the parts

The first Example

2. Event handling

Event Model

Event Model

3. Graphics

The Graphics class

PPT Slide

Example painting into Graphics

Example Graphics (cont)

PPT Slide

Fonts

Fonts Example

Fonts Example (Cont)

4. Layout Managers

Five ready layout policies

Summary

Quiz

Exercises

Intermediate Level day 2 Part B

Aims

Events

Events Classification

Events contain information

Event Listeners

Event Adapters

Example using an Adapter class

Button

Buttons Example

Buttons Example (Cont)

Buttons Example (Cont)

Canvas

Canvas Example

Canvas Example (Cont)

Canvas Example (Cont)

Canvas Example (Cont)

MenuBar

Menu

MenuItem

Menu Example

Menu Example (Cont)

Menu Example (Cont)

Summary

Exercises

Intermediate Level day 2 Part C

Aims

Checkboxes

RadioButton

Choice

TextField

TextArea

List

Dialog

FileDialog

Summary

PPT Slide

Exercise 2

Intermediate Level day 2 Part D

Aims

What is a layout manager?

BorderLayout

BorderLayout Example

FlowLayout

FlowLayout example

GridLayout

GridLayout example

GridBagLayout

GridBagLayout example

GridBagLayout Example (Cont)

GridBagLayout Example (Cont)

CardLayout

CardLayout example

Summary

PPT Slide

Exercise 2

Java Intermediate Level day2

Author: azt

Email: azt@cs.nott.ac.uk

Home Page: www.cs.nott.ac.uk/~azt