Empty tooltips showing on screen
See original GitHub issueWhen a component has an empty tooltip set, an empty tooltip bubble is drawn. For example:
JButton c = new JButton("Tooltip Test");
c.setToolTipText("");
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:
- Created 3 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So generally I would recommend using
null
for toolTipText instead of empty strings 😉@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):
Windows LaF (Java 8):
In Java 14 the empty tips are much larger and not hidden by the mouse pointer:
