CSCI A348
Mastering the World-Wide Web

Spring `96 Lesson
StackedRects Java Program Development Example

The following series of programs illustrate some stages of development of a sample Java applet for an interactive, active, random graphics display. It's intended to exemplify the following aspects of applet programming: Any program text added since the previous version is listed in bold, and any changed since the previous version is in italics.

Development version 00: display a single random rectangle pair
Development version 01: use a double-buffered display
Development version 02: use browser background as applet background
Development version 03: make thick an applet parameter
Development version 04: add nrects parameter
Development version 05: add grid, cover and center parameters
Development version 06: handle some keyboard events
Development version 07: eliminate flashing
Development version 08: add run thread
Development version 09: catch InterruptedException
Development version 10: add thread control
Development version 11: add multiplier keys
Development version 12: handle mouse events
Development version 13: define and use a RectMaker object
Development version 14: add 3-dimensionality
Development version 15: append ColorSeq class
Development version 16: use ColorSeq objects
Development version 17: add resets to default and miscellany

<kinzler@cs.indiana.edu> 8 April 1996