Summary

During the past two days, you have worked with the dynamic multimedia features of the Java language.

One of the strengths of the Java class library is how complex programming tasks such as user interface programming and sound playback are encapsulated within easy-to-create and workable classes. You can play a MIDI file that can be manipulated in real time using only a few objects and class methods, in spite of the extremely complex behind-the-scenes development work.

Today, you played sound in programs using simple and more sophisticated techniques.

If you are only trying to play an audio file, working with getAudioClip() and newAudioClip() methods in the Applet class is probably sufficient.

If you want to do more complex things with ...

Get Sams Teach Yourself Java 2 in 21 Days, 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.