Point mousePoint = MouseInfo.getPointerInfo().getLocation(); System.out.println(mousePoint.x+"vvvvvv"+mousePoint.y);获取鼠标在屏幕上的坐标