I want to try and draw and Image that I have saved. I want to do this from and application and not an applet. I am using the Toolkit.getDefaultToolkit.getImage to get the image. Then the graphics method drawImage in a while loop ( while (!gr.drawImage(....))repaint) This is taking a very long time to display the image and slows down all other threads - is there anything I can do?
You should not try to draw the Image until it is fully loaded from the file. Image loading takes place in a separate Thread - your code is bogging down that Thread by repeated repaint requests. Take a look at java.awt.MediaTracker. Bill
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad: