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