This is a bit broad. Have you tried anything already?
You don't need image files, since you can use Java's JPanel paintComponent()
to take care of the graphics.
Here is how I would implement the minute hand, from here you can work out the hour hand by yourself. No code, you can find everything you need here http://docs.oracle.com/javase/7/docs/api/index.html
- 1 hour is made of 60 minutes, hence I will find out how much angle the hand should span per minute:
spanPerMinute = 360 / 60 = 6
- The amount of degrees spanned by the hand will then be
minuteHandSpan = inputMinutes * spanPerMinute
- Java graphics have the 0° placed at the 9 o'clock position, so my effective graphic span would be
javaMinuteHandSpan = minuteHandSpan + 90
Same goes for the hour hand, and you can add some math so that it moves partially between hours depending on how much of that hour has passed (e.g. hand is between 1 and 2 at 1:30PM).