|
Training Index
by
Help
API Docs
About This Short Course
Short Course
Exercises
Convert the ColoredPanes applet to appear within
an application, that is, within a Frame instance, rather
than an applet.
Skeleton Code
Tasks
1. Create class ColoredPanesAppl with nothing but a main()
method that creates an instance of class ColoredPanesWindow, which
you will create in the next task. Show that window.
2. Create class ColoredPanesWindow. Turn the applet init()
into the constructor. Set the size to 100 x 100.
3. Add window-closing event handling to ColoredPanesWindow so you
can close the window.
Where help exists, the task numbers above are linked to the
step-by-step help page.
Solution Source
Demonstration
The program you are to write is an application and cannot be run from the
browser. Run the solution from the command line as an application.
Copyright 1996-2000 jGuru.com. All Rights Reserved.
|