Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes Easy rotation of simple shapes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Easy rotation of simple shapes" Watch "Easy rotation of simple shapes" New topic

Easy rotation of simple shapes

yue feng

Joined: Mar 12, 2002
Posts: 5
Can anyone tell me that, in java, is there any way to rotate the simple shapes such as triangles, squares, circles?
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Perhaps this part of Sun's Java Tutorial would help you do what you are trying to do:
Transforming Shapes, Text, and Images

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Easy rotation of simple shapes
It's not a secret anymore!