Java Swing Tooltip hideToolTip(JComponent c)

Here you can find the source of hideToolTip(JComponent c)

Description

hide Tool Tip

License

Apache License

Declaration

public static void hideToolTip(JComponent c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.lang.reflect.Method;

import javax.swing.JComponent;

import javax.swing.ToolTipManager;

public class Main {
    public static void hideToolTip(JComponent c) {
        try {//from w w w .  j  a  v a  2  s  . com
            Method hideMethod = ToolTipManager.class.getDeclaredMethod("hide", JComponent.class);
            hideMethod.setAccessible(true);
            hideMethod.invoke(ToolTipManager.sharedInstance(), c);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}

Related

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