public boolean mouseDrag (Event event, int x, int y) {

    boolean firstDrag = false;

    if (!dragged) {
      if (x > dragStart.x+dragThreshhold || x < dragStart.x-dragThreshhold ||
          y > dragStart.y+dragThreshhold || y < dragStart.y-dragThreshhold)
      {
        dragged = true;
	firstDrag = true;
      }
    }
    if (!dragged)
      return true;

    if (selectingFlag) {
      rubberBand.move (getGraphics(), x, y);
    }
    else return super.mouseDrag (event, x, y);
    return true;
  }