Home Segments Top Top Previous Next

873: Mainline

The drawImage method displays the image incrementally, as the image's chunks are loaded. Meanwhile, the rest of your display shows the properties of the current movie quickly.

Separation of image loading and display from the operation of the rest of your program ensures a responsive look and feel. The separation is possible because Java is multithreaded. You learn about multithreading in Chapter 48.