Day 3 Overview
June 27, 1997
Answers to Previous Questions and Lab Exercises
Introduction to the Package awt
(awt = Abstract Windowing
Toolkit) for creating GUIs
- A first example: drawing stick figures revisited.
- Some examples from Late Night Advanced Java, chaps 4 and 5.
Related material from the textbooks
- The Java 1.1 Developer's Handbook, section on Applications,
pp. 32-38. This is a nice, helpful, little section that among
other things explains how paint() gets called.
- Developer's Handbook, section on Life Cycle of an Event,
pp. 45-50. This describes events that will look at how to handle
using the JDK 1.0 event handling system. We will consider the
more complex JDK 1.1 event handling system later.
- Late Night Advanced Java, chapters 5 and 6. Be forewarned
that the Java code in these chapters contains many errors.
Corrected programs for some of the examples can be found in
chapter 5: corrected examples, and
chapter 6: corrected examples.