how to delay the time?

I just make the game and I want to know when I click at Button then next operation will be add at the same time. I want to know how to wait the time about 5sec? it's mean next operation will be add at 5sec after click at button.
[236 byte] By [7837350426301108672a] at [2007-10-2 10:15:31]
# 1
Use a thread, and let the thread sleep for 5 seconds after he did that( 5000 milliseconds)
pieterblommea at 2007-7-13 1:40:01 > top of Java-index,Java Essentials,Java Programming...