Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Graphics2d problem

rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a game that runs in a JFrame. Cars consisting of Rectangle2D.Double's are produced in the paint() method. I have want to have tooltip type and clickable rectangles which work but...
1. Tooltips work in there origional constructed state(orgionalX,origionalY)
2. After usuing the g2.rotate method and changing its rotation the listener only has the Field of the origional location not the change from g2.rotate
3. Graphics2D does not have any methods such as getnewX,getnewY.

What should I do??
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic