The Java Applet package (java.applet) package provides a simple API to allow you to quickly and easily incorporate multimedia support into your applets and JavaBeans. On top of this, the javax.media package provides a more comprehensive API allowing you to incorporate sound files, MIDI, image, and video content into your applications and Web pages. The latest 3D and Sound APIs extend these concepts even further, allowing you to immerse the user in a multimedia spectacular.
The main concepts that will be dealt with in this chapter are as follows:
The Java 2D API
The Java 3D API
The Java Media Framework
To include sound in your application, you use the AudioClip interface in the Applet class. The interface ...