private void showPopupMenu(final MouseEvent event){
  final JCriteriumTreeNode selectedNode=(JCriteriumTreeNode)TreeHelpers.getNodeAt(this,event.getX(),event.getY());
  if (selectedNode != null) {
    final JPopupMenu menu=selectedNode.getPopupMenu();
    if (menu != null) {
      menu.show(this,event.getX(),event.getY());
    }
  }
}

private void showPopupMenu ( final MouseEvent event ) { final JCriteriumTreeNode selectedNode = ( JCriteriumTreeNode ) TreeHelpers . getNodeAt ( this , event . getX ( ) , event . getY ( ) ) ; if ( selectedNode != null ) { final JPopupMenu menu = selectedNode . getPopupMenu ( ) ; if ( menu != null ) { menu . show ( this , event . getX ( ) , event . getY ( ) ) ; } } }
shows the context menu for a given mouse event .
