Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

java: GUI: Write a StillClock class that displays a randomly generated time. The clock should have a hour, minute, and second hand, and should display the time in numeric form also (the hands may be tricky to display correctly, remember your trigonometry!). Extra credit: Make the clock tick (hint: make a while (true) loop with Thread.sleep(...)).

OpenStudy (konradzuse):

le-sigh crazy problems :p Any idea how to start this?

OpenStudy (anonymous):

Start with generating your time values, example: int hour, randomly select between 0 and 12 int minute, randomly select between 0 and 60 use console to print these values then start with the gui

OpenStudy (anonymous):

how do i use a gui to make the clock?

OpenStudy (konradzuse):

As I've seen from one of the new JavaFX 8 samples for the clock you use rotations for the ticks, and set up tick marks and numbers on the clock. You will basically need to create a circle and work from there.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!