File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!