MouseInfo.getPointerInfo().getLocation() might be helpful. It returns a Point object corresponding to current mouse position.
More Related Contents:
- Mouse event handling in Swing
- How to handle events from keyboard and mouse in full screen exclusive mode in java?
- Wanting a type of grid for a pixel editor
- how to obtain mouse click coordinates outside my window in Java
- Display mouse coordinates near mouse as hints on mouse move
- How to get location of a mouse click relative to a swing window
- Listen to JFrame resize events as the user drags their mouse?
- Java: Move image towards mouse position
- Explicitly positioning nodes in JavaFX
- Java getting mouse location on multiple monitor environment
- How do I set the position of the mouse in Java?
- Why cannot I return values from two functions in Java?
- Export of particular value from list in Java
- How to read and write XML files?
- How does the String class override the + operator?
- java compiled classes contain dollar signs
- In java, is it more efficient to use byte or short instead of int and float instead of double?
- How to parse case-insensitive strings with jsr310 DateTimeFormatter?
- Possible to use two java classes with same name and same package?
- Convert an XML file to CSV file using java
- BarCode Image Generator in Java
- JAX-RS Frameworks [closed]
- Remove duplicates from ArrayLists
- PSQLException: ERROR: relation “TABLE_NAME” does not exist
- Vector vs Collections.synchronizedList(ArrayList)
- Changing Tomcat context path of web project in Eclipse
- Difference between Dynamic and Static type assignments in Java
- Why is Ant giving me a Unsupported major.minor version error
- Programmatically clicking a GUI button in Java Swing
- How to handle a NumberFormatException with Gson in deserialization a JSON response