Java Image Wait waitForImage(java.awt.Image image)

Here you can find the source of waitForImage(java.awt.Image image)

Description

wait For Image

License

Open Source License

Declaration

private static void waitForImage(java.awt.Image image) throws InterruptedException 

Method Source Code

//package com.java2s;

public class Main {
    private static java.awt.MediaTracker s_mediaTracker = new java.awt.MediaTracker(new java.awt.Panel());

    private static void waitForImage(java.awt.Image image) throws InterruptedException {
        s_mediaTracker.addImage(image, 0);
        try {/*from   w w w . j  a  v a2s .  c o m*/
            s_mediaTracker.waitForID(0);
        } finally {
            s_mediaTracker.removeImage(image);
        }
    }
}

Related

  1. waitForImage(Image image)
  2. waitForImage(Image image, Component c)
  3. waitForImage(Image image, Component component)
  4. waitForImage(Image image, Component component)
  5. waitForImage(java.awt.Image image)
  6. waitForImageData(Image image, Component comp)
  7. waitImage(Image i)
  8. waitImage(Image image)
  9. wallPaper(Component comp, Graphics g, Image image)