[java. swing] Problems with unregistering tooltips

0

Hi there! I have been having strange bahaviours of the following components:

  • JTree which sits in a JScrollPane - it has a tooltip, I invoke the method setToolTipText() but it doesn't show up, even if I explicitly call ToolTipManager.getSharedInstance().registerComponent(tree) - is it becouse of the scroll pane?

  • JComboBox - editable - this one show a tooltip even if I say ToolTipManager.getSharedInstance().unregisterComponent(combo)

What the heck?

Sorry for english but I don't speak polish.

0
fereigner napisał(a)

What the heck?

I don't have any idea ;)
Have you read the documentation? Maybe you will find something there.

0

try setting tooltip null

0

Have you read the documentation? Maybe you will find something there.

Yes, I've read it more than once and haven't found much.

try setting tooltip null

Yes, that really helped. Thanks, I didn't think of that!

The silly thong is that the combo problem occurs only on Metal Look And Feel. I've implemented dynamic LaF changes and in Windows and Window Classic everythng is normal.

1 użytkowników online, w tym zalogowanych: 0, gości: 1