|
How to make a tool tips appear immediately |
|
|
This Java tips illustrates a method of making a 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);
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.