The Java Cube is written in the Java language.
It uses a rotation matrix to calculate new vertices for the cube as the mouse moves.
The shading of the cube uses the vector normal of each face compared to a vector between the viewers eye and the center of the cube.
Sides facing away from the viewer are not painted.
Flickering has been eliminated by using double buffering.
DOWNLOAD SOURCE FILES