Class InstantTipper

  extended by java.awt.event.MouseAdapter
      extended by
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class InstantTipper
extends MouseAdapter

MouseListener that, when installed on a component, causes tooltips to appear instantly and without dismissal.

This works by doctoring the global ToolTipManager. It will not play nicely with any other code that is making global adjustments to tool tip management. I'd like to do it differently, but ToolTipManager itself is a singleton, which makes it difficult to handle this in a more localised way.

Singleton class.

29 Jan 2015
Mark Taylor

Method Summary
static InstantTipper getInstance()
          Returns the sole instance of this class.
 void mouseEntered(MouseEvent evt)
 void mouseExited(MouseEvent evt)
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public void mouseEntered(MouseEvent evt)
Specified by:
mouseEntered in interface MouseListener
mouseEntered in class MouseAdapter


public void mouseExited(MouseEvent evt)
Specified by:
mouseExited in interface MouseListener
mouseExited in class MouseAdapter


public static InstantTipper getInstance()
Returns the sole instance of this class.

Copyright © 2003-2019 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.