MediaTracker always interrupted

MediaTracker’s waitForID method and waitForAll are always interrupted. I thought the system waited for them!? Anybody have any ideas?

Switch to using Image.io instead. Mediatracker is old and outdated and I belive that it will be depreciated in the next release. Image.io is the way to go now.

That doesn’t answer the question though, does it?

The best explanation I’ve heard is that although mediatracker is blocking, image isn’t. So if your loading an image it can still be drawn although mediatracker is not done with it.

[quote]Switch to using Image.io instead. Mediatracker is old and outdated and I belive that it will be depreciated in the next release. Image.io is the way to go now.
[/quote]
But that returns BufferedImages.

BufferedImage extends Image. So you can use it as an Image.

ooo good point! You guys are very helpful!