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();
changeSelection(int rowIndex,int columnIndex,boolean toggle,boolean extend)
toggle: false, extend: false. Clear the previous selection and ensure the new cell is selected.
toggle: false, extend: true. Extend the previous selection to include the specified cell.
toggle: true, extend: false. If the specified cell is selected, deselect it. If it is not selected, select it.
toggle: true, extend: true. Leave the selection state as it is, but move the anchor index to the specified location.
reference:
javaworld, java 1.4.2 api