0

So basically I want my program to tell me the coordinates of where the mouse was pressed on the Jframe is there a simple way to do it?

Suncatcher
  • 10,355
  • 10
  • 52
  • 90
borat
  • 3
  • 3

1 Answers1

0

Use MouseListener http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseListener.html

And I think this question was answered in StackOwerflow

How to get location of a mouse click relative to a swing window

Gurult
  • 197
  • 3
  • 12