1. Interface ImageObserver????? coderanch.com |
2. Use of ImageObserver ? coderanch.comThis method returns immediately in all cases, even if the image area to be drawn has not yet been scaled, dithered, and converted for the current output device. If the current output representation is not yet complete then drawImage returns false. As more of the image becomes available, the process that loads the image notifies the specified image observer. |
3. Help: how to set imageObserver java-forums.orgimport java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class AnimApp extends JComponent implements Runnable { Image images; private long oldtimeStamp; Toolkit toolkit = Toolkit.getDefaultToolkit(); public void paint(Graphics g) { super.paintComponent (g); System.out.println("NA BEI HERER!!!!!!!!!"); g.drawImage(images, 0, 0, this); } public void run() { // Load the array of images // Display each image for 1 second int delay = 400; ... |