I’m trying to program a Roulette game for my capstone class. I’ve been trying to find a way to code the wheel but I’m new to java and have no idea how to start. I found paintComponent(Graphics g) method helps rotating my wheel image but not the way the wheel should spin. Is there any way I can do it, any articles that would give me an ideas how to start. Any help will be much appreciated.
Share
This example shows how to rotate an arbitrary image. This Q&A may suggest how to rotate the text, if you create your own image at run-time.
Addendum: In helpful comments, @Robin recalls this example, as well as @camickr’s pivotal article Rotated Icon. As the goal is to model a game of roulette with a rotating wheel view, the MVC pattern may prove useful.