while (true) loops and an applet

Is there any way to something constantly changing or updating without a while true loop since in my program the applet will say it loaded but nothing will appear when when I use while(true).
[197 byte] By [pancakesa] at [2007-11-27 3:51:18]
# 1
Have you read the tutorial? http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
DrLaszloJamfa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 2

> Is there any way to something constantly changing or

> updating without a while true loop since in my

> program the applet will say it loaded but nothing

> will appear when when I use while(true).

Chances are that it is with what is being called from inside the while(true) --> not with the actual "while(true)" {{not that it is necessarily the best way to do it...}}

xiarcela at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 3
Okay, so how would you suggest that we run something that is constantly updating every 5 minutes or so? If there was a straight forward way to run a loop so that it doesn't crash or become an infinite loop.
pancakesa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 4
What part of the first reply didn't you understand, or read?
paulcwa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 5
Ummm, we had already seen it and had not found it helpful (hence why we are posting this question on the forum). We would like to thank you, however for your courteous contribution.
pancakesa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 6
Well, here's the thing: given what you've described as what you want, that link should tell you exactly how to do it. So I conclude that you didn't read it, or didn't understand it.
paulcwa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...
# 7
Or is the problem that you're not using Swing? In that case use java.util.Timer.
paulcwa at 2007-7-12 8:55:17 > top of Java-index,Java Essentials,New To Java...