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

private void showPopupMenu ( final MouseEvent event ) { final IconNode selectedNode = ( IconNode ) TreeHelpers . getNodeAt ( referencesTable , event . getX ( ) , event . getY ( ) ) ; if ( selectedNode != null ) { final JPopupMenu menu = createPopupMenu ( selectedNode ) ; if ( menu != null ) { menu . show ( referencesTable , event . getX ( ) , event . getY ( ) ) ; } } }
shows a popup menu that depends on the node that was clicked .
