Hi Darren,

You can get away with something like this:

Component c = new Component() {};
MediaTracker tracker = new MediaTracker(c);

For example, see the source code for javax.swing.ImageIcon.

Jonathan
-----
Java 2D Graphics : http://www.oreilly.com/catalog/java2d/
LEGO MINDSTORMS Robots : http://www.oreilly.com/catalog/lmstorms/
-----

At 10:01 AM 2/1/00 -0500, Darren Houle wrote:
>>>The java.awt.MediaTracker object can help you to make sure that the
image is completely loaded before you do the conversion so that the
ImageObserver is then essentially irrelevant.
>
>Also, the MediaTracker object requires a Componant object to be passed to
it and I'm running a console application.  What do I specify as the
Componant to pass to the constructor?
>
>Darren

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to