Helpful Information
Home
Categories
Contact us
Category: Java and JSP
Pause in Java
I am making an 8-Ball applet and I want to make the 8-Ball pause before it is redrawn in a different location.
How do you make a program pause for a set amount of time before completting the next action in the code?
i don`t know but i once built a javascript 8ball when i started out, i plan to improve it.
scroots
Originally posted by scroots
i don`t know but i once built a javascript 8ball when i started out, i plan to improve it.
scroots
Show me yours; I'll show you mine.
mine is terible, people i know thought it was good.
i will revamp it and show it to you tomorrow.
scroots
You need to look into threading, and in particular the Thread.sleep() method. This is a standard java class.
privacy (GDPR)