On Tue, Dec 07, 2004 at 02:29:09AM -0800, kirill grouchnikov wrote:
 > 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.

  ImageIO has exactly this facility. Check out
  javax.imageio.ImageReader.addIIOReadProgressListener() method and
  javax.imageio.event.IIOReadProgressListener interface.

  Thank you,
    Dmitri

 >
 >
 > > 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
 > >
 > >
 > >
 > ===========================================================================
 > > 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".

===========================================================================
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