public boolean mouseClicked(MouseEvent e){
  EsriGraphicList list=getEsriGraphicList();
  boolean ret=false;
  graphicIndex=-1;
  if (list != null) {
    OMGraphic omg=list.selectClosest(e.getX(),e.getY(),4);
    if (omg != null) {
      graphicIndex=list.indexOf(omg);
      selectEntry(omg);
      ret=true;
    }
 else {
      if (lsm == null)       getTable();
      lsm.clearSelection();
      list.deselect();
      selectedGraphics.clear();
      repaint();
    }
  }
  return ret;
}

public boolean mouseClicked ( MouseEvent e ) { EsriGraphicList list = getEsriGraphicList ( ) ; boolean ret = false ; graphicIndex = - 1 ; if ( list != null ) { OMGraphic omg = list . selectClosest ( e . getX ( ) , e . getY ( ) , 4 ) ; if ( omg != null ) { graphicIndex = list . indexOf ( omg ) ; selectEntry ( omg ) ; ret = true ; } else { if ( lsm == null ) getTable ( ) ; lsm . clearSelection ( ) ; list . deselect ( ) ; selectedGraphics . clear ( ) ; repaint ( ) ; } } return ret ; }
handle a mouse click on the map .
