Handling Mouse Events (cont)
public class LineSegmentCollectionD extends Applet {
LSPointD selectedPoint = null;
LineSegmentD selectedLS = null;
MyMouseHandler mmh = new MyMouseHandler();
addMouseMotionListener(mmh);
theSegments = new Vector();
for (int i = 0; i < 10; i++) {
theSegments.addElement(new LineSegmentD(i,this));