Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Easy rotation of simple shapes

 
yue feng
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me that, in java, is there any way to rotate the simple shapes such as triangles, squares, circles?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps this part of Sun's Java Tutorial would help you do what you are trying to do:
Transforming Shapes, Text, and Images
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic