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

Using the Multimedia APIs

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:

  • Sound

  • Images

  • The Java 2D API

  • The Java 3D API

  • The Java Media Framework

Sound

To include sound in your application, you use the AudioClip interface in the Applet class. The interface ...

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