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