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?
Asked
Active
Viewed 52 times
0
-
1What results did a query in your favorite search engine provide? – Thomas Aug 29 '17 at 11:10
-
Try this one: https://www.google.cz/search?client=opera&q=java+mouse+click+event&sourceid=opera&ie=UTF-8&oe=UTF-8 – PanBrambor Aug 29 '17 at 11:14
1 Answers
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