public void mousePressed(MouseEvent e){
  if (SwingUtilities2.shouldIgnore(e,tree)) {
    return;
  }
  if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) {
    return;
  }
  completeEditing();
  pressedPath=getClosestPathForLocation(tree,e.getX(),e.getY());
  if (tree.getDragEnabled()) {
    mousePressedDND(e);
  }
 else {
    SwingUtilities2.adjustFocus(tree);
    handleSelection(e);
  }
}

public void mousePressed ( MouseEvent e ) { if ( SwingUtilities2 . shouldIgnore ( e , tree ) ) { return ; } if ( isEditing ( tree ) && tree . getInvokesStopCellEditing ( ) && ! stopEditing ( tree ) ) { return ; } completeEditing ( ) ; pressedPath = getClosestPathForLocation ( tree , e . getX ( ) , e . getY ( ) ) ; if ( tree . getDragEnabled ( ) ) { mousePressedDND ( e ) ; } else { SwingUtilities2 . adjustFocus ( tree ) ; handleSelection ( e ) ; } }
invoked when a mouse button has been pressed on a component .
