question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty tooltips showing on screen

See original GitHub issue

When a component has an empty tooltip set, an empty tooltip bubble is drawn. For example:

JButton c = new JButton("Tooltip Test");
c.setToolTipText("");

Screen Shot 2020-07-28 at 11 44 52 AM

Setting the tooltip text to null disables this. This is quite different form other LaFs, where an empty tooltip is not shown.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
DevCharlycommented, Jul 29, 2020

So generally I would recommend using null for toolTipText instead of empty strings 😉

0reactions
DevCharlycommented, Jul 29, 2020

@Poivin maybe you did not notice it because is is a small dot hidden by the mouse pointer. Move the mouse slightly to the right and you probably see it (Java 8):

grafik

Windows LaF (Java 8): grafik

In Java 14 the empty tips are much larger and not hidden by the mouse pointer: grafik grafik

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Tooltip not show when it's empty
Hi @dmoriau , After my test, if you use the bar graph view, when you place the mouse pointer on the empty value,...
Read more >
How to get rid of empty tooltips while displaying error ...
It can be done by checking for an error message in the list java.util.List<FacesMessage> that can be obtained by using facesContext.messageList .
Read more >
Empty tooltip - Microsoft Community
When I hover my cursor over over something and the tooltip comes up it's always empty. This problem isn't just with third party...
Read more >
Tooltip showing as blank - Tableau Community
For some reason my tooltip shows blank when I hover my mouse over my row data. Some are long text, while others are...
Read more >
How to avoid tooltip to display when title is null or empty?
When we hover on element that has title it will show correctly but when we hover on element that do not have title,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found