-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty tooltips showing on screen #134
Comments
Yes i noticed that too. in my app i have tooltips with empty string inside and they were invisible before using flatLAF. |
Thx for reporting. I agree that is does not make any sense to show empty tips. This is now fixed in master branch. But this is actually a problem in Swing because it always creates a JToolTip as soon as I wonder what LaFs you're using that do not show empty tips. I tried Metal, Nimbus, Substance, Windows and Mac L&F and all showed empty tips... |
Thx DevCharly! |
@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): In Java 14 the empty tips are much larger and not hidden by the mouse pointer: |
So generally I would recommend using |
When a component has an empty tooltip set, an empty tooltip bubble is drawn. For example:
Setting the tooltip text to
null
disables this. This is quite different form other LaFs, where an empty tooltip is not shown.The text was updated successfully, but these errors were encountered: