O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required