public void mouseReleased(MouseEvent e){
  if (e.isPopupTrigger()) {
    handlePopup(e);
    e.consume();
  }
}

public void mouseReleased ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { handlePopup ( e ) ; e . consume ( ) ; } }
if this is the popup trigger , process here , otherwise defer to the superclass
