/** * MouseListener method for mouseDown events. If the popup trigger has been activated, then the * appropriate hook method is called. * * @param e MouseEvent which should be interpreted * @param x x coordinate of the MouseEvent * @param y y coordinate of the MouseEvent */ public void mouseDown(MouseEvent e, int x, int y) { // isPopupTrigger() at mouseDown() is only notified at UNIX systems if (e.isPopupTrigger()) { handlePopupMenu(e, x, y); } else { super.mouseDown(e, x, y); handleMouseDown(e, x, y); } }