Java get mouse position on screen

double mouseXPoistion = MouseInfo.getPointerInfo().getLocation().getX();
double mouseYPosition = MouseInfo.getPointerInfo().getLocation().getY();
Content Protection by DMCA.com
Please Share