regarding timer control

How to update Java timer every second?