java.awt.Point point = new java.awt.Point(e.getPoint());
SwingUtilities.convertPointFromScreen(point, e.getComponent());
int x=(int) point.getX();
int y=(int) point.getY();
1.5 :
java.awt.MouseInfo.
getPointerInfo()
.getLocation();
getPointerInfo()
.getLocation();