Starts loading all images tracked by this media tracker. This
method waits until all the images being tracked have finished
loading, or until the length of time specified in milliseconds
by the ms
argument has passed.
If there is an error while loading or scaling an image, then
that image is considered to have finished loading. Use the
isErrorAny
or isErrorID
methods to
check for errors.
ms | the number of milliseconds to wait for the loading to complete |
true
if all images were successfully
loaded; false
otherwise
InterruptedException | if any thread has interrupted this thread. |
java.awt.MediaTracker.waitForID(int), java.awt.MediaTracker.waitForAll(long), java.awt.MediaTracker.isErrorAny, java.awt.MediaTracker.isErrorID
Diagram: Observer