aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Delayed loading of image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Delayed loading of image" Watch "Delayed loading of image" New topic
Author

Delayed loading of image

David Mace
Ranch Hand

Joined: May 26, 2004
Posts: 35
I am taking a screenshot and running it through a filter to dim the image. I take this image and place it in a JLabel and show over a portion of the screen. When I do this, even though I use a MediaTracker, it shows a grey background for the JFrame for about .1s before the image is shown. I've trimmed out all the unnecessary code and I'm posting a compilable version below.

If I do not run the image through a filter, it displays instantly as it should. What could be causing this delay?

Thanks,
David



Dad always thought laughter was the best medicine, which I guess is why several of us died of tuberculosis. -Jack Handy
 
 
subject: Delayed loading of image
 
Similar Threads
JPanel-Retaining the contents of the JPanel
Image Filter problems
Gray box where my applet should be
Using Graphics in a BorderLayout
adding images to components