Question: Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for
Write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). You need to determine the angles of the hour hand and the minute hand. The angle of the minute hand is easy; the minute hand travels 360 degrees in 60 minutes. The angle of the hour hand is harder; it travels 360 degrees in 12 × 60 minutes.
Step by Step Solution
3.49 Rating (169 Votes )
There are 3 Steps involved in it
DrawClockUtiljava package graphichal2 import javaawtColor import javaawtGraphics import javaawteventActionEvent import javaawteventActionListener impo... View full answer
Get step-by-step solutions from verified subject matter experts
