This is an animated simulation of a ball bounced in a 3D cube.
The code can run as either an Applet or as an Application.
JFrame extended class as the main GUI
Canvas extended class to hold the graphics
window listener to handle closing of the JFrame
hierarchy bounds listener to handle resizing of the JFrame
a JToolBar (containing JButtons) example (non-functioning at this point)