Sunday, May 18, 2014

Get X/Y Position of Mouse Cursor in Java


Simple Note

Use java.awt.MouseInfo as below:

        MouseInfo.getPointerInfo().getLocation().getX();
        MouseInfo.getPointerInfo().getLocation().getY();

Reference

Get Mouse Position

No comments:

Post a Comment