Hi everyone.
I have a simple question. I would like to enable tooltip text on a JPanel in
a JScollPane. I have
overridden getToolTipText but it is not called when I leave the mouse over
the scroll pane and
the panel within it. Can someone please tell me what I am missing?
Thanks in advance
Tor Iver Wilhelmsen - 10 Jul 2004 10:51 GMT
> Can someone please tell me what I am missing?
JPanel components are not by default managed by the ToolTipManager. So
you need to tell it your panel has a tooltip:
ToolTipManager.sharedInstance().registerComponent(theJPanel);