net.java.balloontip.utils
Class ToolTipUtils

java.lang.Object
  extended by net.java.balloontip.utils.ToolTipUtils

public final class ToolTipUtils
extends java.lang.Object

This class allows you to use a balloon tip as a tooltip That is, the balloon tip will only show up for a certain amount of time while you hover over the attached component.

Author:
Tim Molderez

Method Summary
static void balloonToToolTip(BalloonTip bT, int initialDelay, int showDelay)
          Turns a balloon tip into a tooltip This is done by adding a mouse listener to the attached component.
static void toolTipToBalloon(BalloonTip bT)
          Turns a balloon tooltip back into a regular balloon tip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

balloonToToolTip

public static void balloonToToolTip(BalloonTip bT,
                                    int initialDelay,
                                    int showDelay)
Turns a balloon tip into a tooltip This is done by adding a mouse listener to the attached component. (Call toolTipToBalloon() if you wish to remove this listener.)

Parameters:
bT - the balloon tip
initialDelay - in milliseconds, how long should you hover over the attached component before showing the tooltip
showDelay - in milliseconds, how long should the tooltip stay visible

toolTipToBalloon

public static void toolTipToBalloon(BalloonTip bT)
Turns a balloon tooltip back into a regular balloon tip

Parameters:
bT - the balloon tip


http://balloontip.java.net/