Java Swing Tooltip setLongerTooltips()

Here you can find the source of setLongerTooltips()

Description

(re-)shows tooltips earlier (10 milliseconds) and longer (20 seconds)

License

Open Source License

Declaration

public static void setLongerTooltips() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.ToolTipManager;

public class Main {
    /**/*from ww w  . j a va2 s. com*/
     * (re-)shows tooltips earlier (10 milliseconds) and longer (20 seconds)
     */
    public static void setLongerTooltips() {
        ToolTipManager sharedInstance = ToolTipManager.sharedInstance();
        sharedInstance.setReshowDelay(10);
        sharedInstance.setInitialDelay(10);
        sharedInstance.setDismissDelay(60 * 1000);
    }
}

Related

  1. createMarker(int span, String tooltip)
  2. createNumericInput(final String tooltip)
  3. displayTooltip(JComponent component)
  4. hideToolTip(JComponent c)
  5. performMultipleReplacements(final Document theDocument, final String theRegexToSearch, final String theReplacement)
  6. setTooltipDismissDelay()
  7. showTooltipNow(JComponent c)
  8. showToolTipNow(JComponent component)
  9. toolTip(JComponent c, String s)