if (event.isPopupTrigger ())
if (SwingUtilities.isRightMouseButton(event))
         public void mouseReleased (MouseEvent event) {            if (event.isPopupTrigger ())               showPopupMenu(event);         }