import javax.swing.ToolTipManager;
publicclass Main {
publicstaticvoid main(String[] argv) throws Exception {
// 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);
}
}