Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent pls help  RSS feed

 
indian greenhorn
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Using Graphics2D when I rotate my component I want the event associated with the component also to move along with the coordinates of the component.
In Event class there is one method translate(int x, int y) can anyone tell me how to implement this method in my program. A simple example will be of great use.
regards
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!