Making Tool Tips Remain Visible

By default, a tool tip stays visible for 4 seconds. This example demonstrates how to keep the tool tip showing as long as the cursor is in the component.
// Get current delay int dismissDelay = ToolTipManager.sharedInstance().getDismissDelay(); // Keep the tool tip showing dismissDelay = Integer.MAX_VALUE; ToolTipManager.sharedInstance().setDismissDelay(dismissDelay);

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.