public boolean mousePressed(MouseEvent e){
  if (wantsEvents()) {
    if (omdtmm != null) {
      omdtmm.mousePressed(e);
    }
    return consumeEvents;
  }
 else {
    return super.mousePressed(e);
  }
}

public boolean mousePressed ( MouseEvent e ) { if ( wantsEvents ( ) ) { if ( omdtmm != null ) { omdtmm . mousePressed ( e ) ; } return consumeEvents ; } else { return super . mousePressed ( e ) ; } }
invoked when a mouse button has been pressed on a component .
