Chapter 21. Multimedia: Applets and Applications

The wheel that squeaks the loudest ... gets the grease.

John Billings (Henry Wheeler Shaw)

We’ll use a signal I have tried and found far-reaching and easy to yell. Waa-hoo!

Zane Grey

There is a natural hootchykootchy motion to a goldfish.

Walt Disney

Between the motion and the act falls the shadow.

Thomas Stearns Eliot


In this chapter you’ll learn:

• How to get, display and scale images.

• How to create animations from sequences of images.

• How to create image maps that can sense when the cursor is over them.

• How to get, play, loop and stop sounds using an AudioClip.

• How to play video using interface Player.

21.1 Introduction

21.2 Loading, Displaying and Scaling ...

Get Java™ for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.