public void mousePressed(MouseEvent e){
  events.clear();
  if (mapDragOperationFromModifiers(e) != DnDConstants.ACTION_NONE) {
    try {
      motionThreshold=DragSource.getDragThreshold();
    }
 catch (    Exception exc) {
      motionThreshold=5;
    }
    appendEvent(e);
  }
}

public void mousePressed ( MouseEvent e ) { events . clear ( ) ; if ( mapDragOperationFromModifiers ( e ) != DnDConstants . ACTION_NONE ) { try { motionThreshold = DragSource . getDragThreshold ( ) ; } catch ( Exception exc ) { motionThreshold = 5 ; } appendEvent ( e ) ; } }
invoked when a mouse button has been pressed on a component .
