This thread got off topic a little bit. The original question:

Is there a java equivalent to the javascript function setTimeout, setInterval?

The answer is yes. Checkout:...