Chapter 12 Examples
These pages have the complete source code and examples
from Chapter 12, Rectangles, Ovals, Images and Polygons, from the Java Developer's Resource.
In this chapter you learn about Java's methods to draw two-dimensional shapes including rectangles, squares, ovals, circles and polygons. These are all part of the java.awt.Graphics class. You also learn how to use bitmapped GIF and JPEG images in your applet.
Topics covered in this chapter include
- Rectangles and squares
- Ovals and circles
- Polygons
- Bitmapped images
The Examples
Examples from Other Chapters
[ Cafe Au Lait | Books | Trade Shows | Links | FAQ | Tutorial | User Groups ]
Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
Last Modified July 23, 1996