Table of Contents
Objects At their Best
The Abstract Window Toolkit (AWT)
GUI In Action
What GUI Support Entails
GUI Tasks and Issues
Applets
Life Cycle of An Applet
Applet Class (Default) Behavior
A Sample Applet: BasicElements
Extending The Applet Class (1)
Overriding init:Control Creation and Placement
Event Handling
Is Anyone Listening?
Overriding init:Listener Registration
Extending The Applet Class (2)
Maintaining the Display
Components vs “Doodles”
Graphic Behavior:The Graphics Class
Overriding paint:Drawing the doodles
Back to events:actionPerformed method
Needed: Instance Variables
Overriding init:Initializing currentColor
The BasicElements Applet
Running an Applet
Using BasicElements Applet:What's The Problem?
Wanted: Component for Drawing
Improving BasicElements: Canvas
General Strategy For Using Canvas
MyCanvas: Overview
MyCanvas: paint
MyCanvas: actionPerformed
MyCanvas: Instance Variables
MyCanvas: Constructor
Improved Applet: BetterBasicElements
Placing Controls
Components and Containers
The add Method
LayoutManager Objects
Two Layout Managers:
Using Layout Managers: setLayout method
add method
Panel Class
Using Panels
Using Panels: BestBasicElements
Using Panels: BestBasicElements
Using Panels: BestBasicElements
Using Panels: BestBasicElements
Calculator Layout: Same Strategy
Where Do You Go From Here?Net Resources
Where Do You Go From Here?Books
Where Do You Go From Here?Development Tools
|