[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AWT Image Loading



I'm writing a graphlet which loads a jpg image which I use as a background.
The problem I'm having is that the first time that I run the graphlet the
jpg doesn't load before the rest of the graph does, so I end up with a
blank background and my graph. On subsequent loads, the jpg comes up fine.
I assume that I can't use a MediaTracker, since I'm not using a component
or applet. Does anyone any examples of how to wait for the image to load
before doing any drawing? Any help would be greatly appreciated, as I'm a
newbie to java.

Thanks,

Shawn