Building a Java 3D Bean
All Java 3D projects involve carrying out at least three steps:
Creating a Canvas3D object
Creating a universe
Creating objects or sounds
The Canvas3D object forms the canvas that your three-dimensional universe is painted on. The universe is an object that contains all of your three-dimensional objects and sounds. Of course, you must design, create, or record the objects and sounds that will populate your universe. In this section you will build a simple Java 3D bean, the WindowOnMyUniverse bean, to get a feel for these three basic steps. This bean displays only one side of a cube, like the one shown in Figure 30.1.
Figure 30.1. The WindowOnMy Universe bean, which shows one side of a virtual cube.
The cube in the first ...