Home Segments Top Top Previous Next

Chapter 48:

How to Use Threads to
Implement Dynamic Applets

In Segment 873, you learned that you can write a program that appears to be loading an image at the same time that the program is doing other computations. Such apparently simultaneous computations are possible because Java is multithreaded. In this chapter, you learn about multithreading in the context of a program that moves a message across the bottom of a display as though the message were presented on a theater marquee.