Originally posted by Dirk Schreckmann:
Also, note that a simple Thread.sleep(long millis) might do the trick well enough at times.
Note that this doesn't guarantee an exact amount of time that is paused. If the OS is busy doing something else when the time runs out, it may well keep doing what it is doing rather than restarting your program.
I guess I shouldn't go too deep into this issue since it really isn't a beginner topic. I just thought I'd mention it.
Layne