private void adjustCaret(MouseEvent e){
  if ((e.getModifiers() & ActionEvent.SHIFT_MASK) != 0 && this.dotInfo != null) {
    moveCaret(e);
  }
 else {
    positionCaret(e);
  }
}

private void adjustCaret ( MouseEvent e ) { if ( ( e . getModifiers ( ) & ActionEvent . SHIFT_MASK ) != 0 && this . dotInfo != null ) { moveCaret ( e ) ; } else { positionCaret ( e ) ; } }
adjusts the caret location based on the mouseevent .
