One advantage of using MediaTracker is when you load multiple images over the Web. You then may show a progress bar that indicates how many images have been completely downloaded. This gives a nice illusion of the progress instead of a synchronous wait. You can write a simple ImageRetrieverThread that will start the download. It then may notify the UI about the progress and the end of the download.
--- Andrei Kouznetsov <[EMAIL PROTECTED]> wrote: > On Tue, 7 Dec 2004 08:03:14 +0100, > =?ISO-8859-1?Q?Claude_St=E9phan?= > <[EMAIL PROTECTED]> wrote: > > >Untill to day, I load an Image through getImage > method and Toolkit. > >To be certain that the picture has been well > loaded, I use > >java.awt.MediaTracker > > the simplest way is to create ImageIcon instead of > using MediaTracker > > > > >Is the Image I/O librairy get the picture completly > loaded or do I have > >to still work with Mediatracker? > > no you don't need MediaTracker. > > Regards > > -- > Andrei Kouznetsov > http://uio.dev.java.net Unified I/O for Java > http://reader.imagero.com Java image reader > http://jgui.imagero.com Java GUI components and > utilities > > =========================================================================== > 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". > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail =========================================================================== 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".
