int x = e.getX(), y = e.getY();
Component c = (Component)e.getSource();
if ( x < 0 || y < 0 || x > c.getWidth() || y > c.getHeight() )
{
Window w = SwingUtilities.getWindowAncestor(JCustomTooltip.this);
w.removeMouseListener(this);
w.setFocusableWindowState(false);
popup.hide();
popup = null;
getComponent().setToolTipText("?");
showing = false;