You could draw it on a JPanel by overriding the paintComponent
method.
Use a Timer to tick every second to redraw the clock. The timer fires ActionEvents which your panel could listen for.
As for drawing, the center of the boxes with the numbers can be calculated with a bit of trigonometry. For the hour boxes: x = sin(hour / 12 * 2 * pi)
and y = cos(hour / 12 * 2 * pi)
. For the minute boxes: x = sin(minute / 60 * 2 * pi)
and y = cos(minute / 60 * 2 * pi)
. These will be relative to the center of the clock and will need to be multiplied by some constant. Actually, those equations might not be quite right, but the way to do it is something like that.