Given an hour and a minute, I want to draw an analogous clock.
I was able to create a Group
with a Circle
, but I don't know which class to use for the hands and how to place and rotate them.
Given an hour and a minute, I want to draw an analogous clock.
I was able to create a Group
with a Circle
, but I don't know which class to use for the hands and how to place and rotate them.
I created a sample app implementing the above principles.
Update
In response to criticism of the coding style used in the sample app, I created a refactored sample app which uses a more functional coding style.
Additionally the jfxtras project has an AnalogueClock control. Here is the gist of how to use the jfxtras clock.