Skip to main content

RE: why not JComponent.setToolTipDismisalDelay ??

4 replies [Last post]
kjc5664
Offline
Joined: 2004-03-04

I was looking for a way to set the tool-tip dismisal time for a given component. But, all I came up with was to
obtain the shared instance via ToolTipManager.shareInstance() and set the tool tip
dismisal time there. With ToolTipManager.setDismissDelay();

But, if I'm not mistaken this sets the dismis delay for
all JComponent instances. Since all JComponents also use the shared instance of ToolTipManager. Why isn't there a setDismisDelay
for JComponent.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous

The JToolTip itself has a method setDismissDelay(long milliseconds). With that you can set the time the tooltip is still shown after the mouse moved on. Is it that what you are looking for?

kjc5664
Offline
Joined: 2004-03-04

I saw no such method in JToolTip. The only place that I found a setDismissDelay(long milliseconds). Is in the
ToolTipManager class

Anonymous

Sorry my fault you are right. I thought I was in the JToolTip class docs.

kjc5664
Offline
Joined: 2004-03-04

No problem. But. Hey, all you Sun Swing developers. Get your OO act together.
There are many things to rave about the work that you've done. But...
This is NOT one of them.