<Swing Dev> RFR JDK-8232927:ToolTipManager is unable to force heavy weight popups
Prasanta Sadhukhan
prasanta.sadhukhan at oracle.com
Wed Jul 22 07:44:22 UTC 2020
Hi All,
Please review a fix for an issue whereby Java developer is not able to
to force the tooltips to be displayed in a heavyweight popup.
In ToolTipManager#showTipWindow() , even if we do
"ToolTipManager.setLightWeightPopupEnabled(false)" we can only force a
medium weight popup as can be seen here
[http://hg.openjdk.java.net/jdk/client/file/f054a3a03050/src/java.desktop/share/classes/javax/swing/ToolTipManager.java#l338]
In addition, there is also a field "heavyWeightPopupEnabled" inside the
ToolTipManager which is not used..
There should be at least one way to force a heavy weight popup in the
ToolTipManager.
Proposed fix is to give an option to developer to force tooltip to be
displayed in HW. CSR will be raised after technical review
Bug: https://bugs.openjdk.java.net/browse/JDK-8232927
webrev: http://cr.openjdk.java.net/~psadhukhan/8232927/webrev.0
Regards
Prasanta
More information about the swing-dev
mailing list