June 2005
Beginner to intermediate
336 pages
6h 29m
English
This application doesn't need a lot of sophisticated windowing techniques or controls, so it draws itself in a straightforward way using the Java Abstract Windowing Toolkit, also known as the AWT (some of the upcoming applications that need to be more powerful will use Swing). The main class in this application is Aquarium, and you need to base it on a class that can display the aquarium, which means using a class such as Frame in the AWT:
import java.awt.*; public class Aquarium extends Frame { . . .
This class relies on the Frame class (full name java.awt.Frame), and you can find the significant methods of this class in Table 1.1.
| Method | Does This |
|---|---|
| void addNotify() ... |
Read now
Unlock full access