How to make a rotated panel in java
I want to know if there is some way to rotate a panel without changing its shape. I mean I am able to rotate the drawings inside the panel using rotate()
given in graphics2D
but the rectangular drawings become diamond shaped. Is there some soln for it?? I mean can I avoid the drawing from becoming diamond shape.开发者_运维技巧 The problem is more evident when u change the resolution of the screen.
Yes, rotate the image around its center, as shown in this example.
精彩评论