Implementing Loading Screen

Hiya everyone!
I am currently grappling with another conceptual problem having to do with Java.

I see all these great games containing loading screens so when the game finally starts, everything is ready to go.

After thinking a while on how to do this myself, I am stumped!

Could someone please tell me how to make a program display a string such as “Loading…” while the program is in its initialization stage, or while a certain operation is performing?

I can’t seem to understand this no matter how hard I try!

Thanks very much in advance!
Smarto

I posted a load of code to do this on the following thread, check it out.

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=LWJGL;action=display;num=1105994162

Andy.

I would really like to see what anyone has to contribute to this. Im looking for a good loading resources routine.

thanks to anyone who can participate.

The basic idea is to download resources via URL connections, then load your game via reflection and replace the “loading screen” component.

LWJGL has a good example: http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java?revision=3245&view=markup with caching and everything!