• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to capture JFrame co-ordinates using mouse co-ordinates  RSS feed

 
ahmedali mohd
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,


I want to capture the dynamic label name which i added on JFrame using mouse click. How i can do that, if i use getX() and getY()
of mouse events . I know these are methods of MouseEvent but both mouse coordinates and frame cordiantes are different. Please let help me out asap how to do it.


Regards
Ahmed
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!