I need a Cube that will draw in isometric projection, after that I need it to turn around one of his axis (for example Z), this is my source, I can not understand how to use repaint() method to rotate the cube.
I need a Cube that will draw in isometric projection, after that I need
Share
I looked at “some” of your code (posted below), and yes, you need to use a Swing Timer for your game loop. Also, you’ll want to do drawing in your JPanel’s paintComponent method, not its paint method.
Code: