DrawShapes

with Double Buffering


This was my first applet I did during my Programming Languages class I took Spring 1996. It is pretty simple. The basic idea was to learn about object oriented programming by subclassing one generic class to provide any number of shapes that have the same manipulation routines.

Note: I recently updated the code using double buffering to prevent the applet from flickering.  The rest of the code is pretty much the same.  When you get a lot of objects in the window you can really see a difference.  The double buffering code is in DrawShapes.java and I put a block around it -- this is all that really changed.

Source Code:
DrawShapes.java - controls the UI, moving objects, creating, etc.
Shapes.java - classes of the shapes (Point, Rectangle, Circle, Line)


Java Applets / DrawShapes / NavBar / Othello


Last modified February 17, 1999 by Jeff Mark