• Post Reply Bookmark Topic Watch Topic
  • New Topic

Translating events of the components

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!