>>732
1 Applet implements MouseMotionListener
2 this.addMouseMotionListener(this);
3 g.drawRect
4 Point p = me.getPoint();
5 this.x = p.x;
6 this.y = p.y;

こうかなぁ?