SyntaxFix
Write A Post
Hire A Developer
Questions
MouseInfo.getPointerInfo().getLocation() might be helpful. It returns a Point object corresponding to current mouse position.