Java getting mouse location on multiple monitor environment
I have searched for a while on the internet but I didn't find any solution for my problem. I know that you can get the current mouse position with PointerInfo a = MouseInfo.getPointerInfo(); Point b = a.getLocation(); The problem is in a multi environment screen I am just getting the mouse position relative to the main screen. Which means if the second screen is to the left of the main screen I receive for example X: -917.0 Location Y: -137.0. I know that these values depend on the screen resolution and the order of the monitors. Is there any possibility to obtain the mouse position on the