if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource();  String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); }
  public void mouseMoved(MouseEvent event)  {    currentPoint = event.getPoint();    if (currentTip != null)      {	if (currentComponent == null)	  currentComponent = (Component) event.getSource();		String text = ((JComponent) currentComponent).getToolTipText(event);	currentTip.setTipText(text);      }    if (enterTimer.isRunning())      enterTimer.restart();  }