private void evaluatePopup(MouseEvent e){
  if (e.isPopupTrigger()) {
    JPopupMenu menu=createBookmarkPopupMenu();
    if (menu != null) {
      menu.show(this,e.getX(),e.getY());
    }
  }
}

private void evaluatePopup ( MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { JPopupMenu menu = createBookmarkPopupMenu ( ) ; if ( menu != null ) { menu . show ( this , e . getX ( ) , e . getY ( ) ) ; } } }
checks if the given mouse event is a popup trigger and creates a new popup menu if necessary .
