public void processMouseEvent(java.awt.event.MouseEvent e) { if(e.isPopupTrigger()) // ... popupMenu.show();} elsesuper.processMouseEvent(e);}