I'm trying to set tooltips on a JEditorPane
. The problem is that the method which I use to determine what tooltip text to show is fairly CPU intensive - and so I would like to only show it after the mouse has stopped for a short amount of time - say 1 second.
I know I can use :- ToolTipManager.sharedInstance().setInitialDelay()
however this will set the delay time for tooltips on all swing components at once and I don't want this.
Does anyone have an idea how you could do this?
Thanks