Hi Expert,
I'm currently doing a java project.
May i noe how to use timer to set the movement of an object, etc. rectangle.
Just for info, i'm doing a evalator simulation which i need to click a button for the user to go to. And i need to further improve the speed of the movement by allow user to speed up the movement.
Pls advice.
Thanx.
Regards,
peiling82
When user speeds up the movement, you'll kill the current timer and set a new one (with the same ID) that will have a shorten timeout value. This inside the handler for the speed control.