Image displayed in frame

I'm having problems displaying an image in a awt frame. The image is displayed in a ImageCanvas. The frame is a small loading screen with a picture in it. On it's own it works fine but when I construct a frame and pack it right after displaying the frame with the image, the image canvas displays only an empty box while the next frame loads. I've made a bit of progress by calling Thread.sleep(n) after the loading frame is displayed, and before the next frame is constructed and packed. However, this is not the way I want to implement it.

Is there a bit more graceful way to do this?

[609 byte] By [dan_burke] at [2007-9-26 5:11:06]
# 1
look at yield(), what is probably happening is that your second thread is not yielding to let the first one paint/repaint. I had a similar problem and yield took care of it by letting the other requests process too.
morgalr at 2007-6-29 19:12:13 > top of Java-index,Desktop,Core GUI APIs...