public void updateTrackPoint(Point p){
  int newLocX=Math.min(p.x,this.anchor.x);
  int newLocY=Math.min(p.y,this.anchor.y);
  int deltaX=Math.abs(p.x - this.anchor.x);
  int deltaY=Math.abs(p.y - this.anchor.y);
  setLocation(newLocX,newLocY);
  setSize(deltaX,deltaY);
}

public void updateTrackPoint ( Point p ) { int newLocX = Math . min ( p . x , this . anchor . x ) ; int newLocY = Math . min ( p . y , this . anchor . y ) ; int deltaX = Math . abs ( p . x - this . anchor . x ) ; int deltaY = Math . abs ( p . y - this . anchor . y ) ; setLocation ( newLocX , newLocY ) ; setSize ( deltaX , deltaY ) ; }
updates the track point for the rubber band so that it extends from the initial location point to the point specified as the argument .
