boolean (MouseEvent e) { if (myCurrentTooltip != null) { if (!myCurrentTooltip.isShowing()) { hideTooltip(true); return false; } final Component eventOriginator = e.getComponent(); if (eventOriginator == null) { return false; } final Point point = e.getPoint(); SwingUtilities.convertPointToScreen(point, eventOriginator); final Rectangle bounds = myCurrentTooltip.getBounds(); final Point tooltipLocationOnScreen = myCurrentTooltip.getLocationOnScreen(); bounds.setLocation(tooltipLocationOnScreen.x, tooltipLocationOnScreen.y); return bounds.contains(point); } return false; }