O'Reilly logo

Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition by Rogers Cadenhead, Laura Lemay

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

Chapter 10. Adding Images, Animation, and Sound

The first exposure to Java for many people was the sight of animated text or moving images on a Web page. These kinds of animation are simple, requiring only a few methods to implement in Java, but those methods are the basis for any applet that requires dynamic updates to the screen. Starting with simple animation is a good way to build up to more complicated applets.

Animation in Java is accomplished by using interrelated parts of the Abstract Windowing Toolkit (AWT). Today, you learn how the various parts of Java work together so that you can create moving figures and dynamically updated applets.

Creating animation is fun and easy to do in Java, but there's only so much you can do with the built-in ...

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