You've got a couple of different topics in there.
1. To perform a task say every second or so use a timer. I'd recommend doing this in a thread but there are other options as well.
2. Call the container's repaint method, or if you're only concerned about the time element just change the text every time the timer kicks off.
Cheers,
PS