// Create a tracker. This is just an XOR rect on the screen.
// As it moves we notify the drag listeners.
final Tracker tracker = new Tracker(display, SWT.NULL);
tracker.setStippled(true);
tracker.addListener(SWT.Move, new Listener() {
public void handleEvent(final Event event) {
display.syncExec(new Runnable() {
public void run() {
// Get the curslor location as a point
Point location = new Point(event.x, event.y);