Java 1.8.0_341 - JDK-8282229 - Customizable visibility timing for Tooltip BUG!?

C-Schmitz at t-systems.com C-Schmitz at t-systems.com
Fri Oct 14 06:36:47 UTC 2022


Hi,

we have a problem with the JavaFX implementation for the Tooltip class (this issue https://bugs.openjdk.org/browse/JDK-8090477 and https://bugs.openjdk.org/browse/JDK-8282229#<https://bugs.openjdk.org/browse/JDK-8282229>).
The problem is related to Java version 1.8.0_341. We use the Tooltip class without explicit usage of the new timing methods. When you position the mouse on a Textfield (where a tooltip is attached to), waiting for a second, the tooltip appears. If you do not move the mouse, the tooltip disappears after 5 seconds. When the tooltip appears and you move the mouse away from the Textfield, the tooltip stays open and did not hide anymore.

I've compared both tooltip versions (1.8.0_333 versus 1.8.0_341) and I think the problem could be the following:

1.8.0_333

[cid:image001.png at 01D8DFA8.14B89310]


1.8.0_341


[cid:image002.png at 01D8DFA8.14B89310]

Possible bug reason:

When you move the mouse away from the TextField which shows the tooltip the yellow code line in the new version: Tooltip t = ...
does not return the currently shown tooltip. Instead it returns null, so that the leftTimer does not start to finally close the tooltip.
The old version always starts the leftTimer, so that the tooltip gets closed.

Is there any way to force a fix for this in the next JRE/JDK-version for Java8?

Thanks and best regards
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20221014/9086b9df/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 26038 bytes
Desc: image001.png
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20221014/9086b9df/image001-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 32863 bytes
Desc: image002.png
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20221014/9086b9df/image002-0001.png>


More information about the openjfx-dev mailing list