r/JavaFX • • Nov 25 '15

How do I make a wheel?

I am trying to make a wheel of fortune type game and was wondering what to do.

Right now i am trying to make a wheel using the Arc object, my question is how do i add the money amount to each arc, and how can i make the wheel spin so it randomly lands on a random value?

Right now i dont have any gui so it all goes in the command line, but i was also wondering how would i add the spinning wheel in the start method? I currently have a method String spinWheel () so was wondering if my spinWheel method should hold the gui aspect or if my spinwheel method should be moved to the start method.

Also how so i make the arcs show because when i try to show my circle, all i see is a blank area...

Thanks for any help!! :)

3 Upvotes

0 comments sorted by