Making Tool Tips Appear Immediately

By default, when the cursor enters a component, there is a 750-millisecond delay before the tool tip is displayed. This example demonstrates how to show the tool tip immediately.
// Get current delay int initialDelay = ToolTipManager.sharedInstance().getInitialDelay(); // Show tool tips immediately ToolTipManager.sharedInstance().setInitialDelay(0); // Show tool tips after a second initialDelay = 1000; ToolTipManager.sharedInstance().setInitialDelay(initialDelay);

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.