public void mouseReleased(MouseEvent e) { if (e.isPopupTrigger()) { Popup popup = new Popup(); popup.show(e.getComponent(), e.getX(), e.getY()); } }
private void dispatchEvent(MouseEvent me) { Component src = me.getComponent(); comp.dispatchEvent(SwingUtilities.convertMouseEvent(src, me, comp)); src.repaint(); }
private void maybeShowPopup(MouseEvent e) { if (e.isPopupTrigger() && back.size() > 1) popup.show(e.getComponent(), e.getX(), e.getY()); }