import java.awt.Graphics;
import java.awt.Event;

public class InterSouris extends java.applet.Applet {
  int sx, sy;
  long quand;

  public boolean mouseMove(Event e, int x, int y) {
    quand = e.when;
    sx = x;
    sy = y;
    repaint();
    return true;
  }

  public void paint(Graphics g) {
    g.drawString(quand+" ms : ("+sx+", "+sy+")", 10, 20);
  }
}
