This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
but I don't understand what is the purpose of use mediatracked in the method of loadimage [ July 02, 2004: Message edited by: Jack Deng ]
Joined: Jan 14, 2004
getImage returns immediately, ie, it doesn't wait around for the image to fully load. MediaTracker blocks program execution until the image is fully loaded. This becomes more important when you are loading a large image, a series of images or loading over the internet.