How can I use a simple TImer()

Does anybody know how can I use a simple Timer(), that waits 1000 ms between two operations ?The thread.sleep() and (Robot) robot.delay() is not correct because I use mouselisteners and graphics ...
[212 byte] By [Petur18a] at [2007-11-27 5:09:22]
# 1
http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
Michael_Dunna at 2007-7-12 10:29:04 > top of Java-index,Desktop,Core GUI APIs...
# 2
Hmmm ... I didn't understand exactly, I need N ms delay between 2 operations not between 2 mouseEvents. Can you give me the code ?
Petur18a at 2007-7-12 10:29:04 > top of Java-index,Desktop,Core GUI APIs...
# 3
Create a separate Thread. Then you thread will execute the first operation immediately and then use the Thread.sleep() method for 1 second before executing the second operation. That way you don't block the GUI event Thread.
camickra at 2007-7-12 10:29:04 > top of Java-index,Desktop,Core GUI APIs...