import javax.swing.ToolTipManager;
public class Main {
public static void main(String[] argv) throws Exception {
// Get current delay
int dismissDelay = ToolTipManager.sharedInstance().getDismissDelay();
// Keep the tool tip showing
dismissDelay = Integer.MAX_VALUE;
ToolTipManager.sharedInstance().setDismissDelay(dismissDelay);
}
}