This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics2d problem  RSS feed

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
Boost this thread!