My friend wrote an Applet that contains thread, I think Applet does this automatically: Make sure everything load befor running the thread.
But my programming is not an Applet, when I start my program, the thread will run before the program finish loading. Is there a way to fix this problem?
You'd have to define "loading" for me before I could offer any advice. The answer, though, will be that you just have to not start your threads until the "loading" is completed -- simple enough.
You need to observe the images using a MediaTracker, as far as I know.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus