void (MouseEvent e) { final Point point = e.getPoint(); SwingUtilities.convertPointToScreen(point, e.getComponent()); if (Math.abs(lastTimeClicked - e.getWhen()) > UIUtil.getMultiClickInterval() || lastClickPoint != null && !isWithinEps(lastClickPoint, point)) { clickCount = 0; lastClickPoint = null; } clickCount++; lastTimeClicked = e.getWhen(); if (!e.isPopupTrigger()) { pressPoint = point; } }