Here you can find the source of hideToolTip(JComponent c)
public static void hideToolTip(JComponent c)
//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); } } }