On 4/17/20 4:16 am, Prasanta Sadhukhan wrote:
Also, the popupType will remain LW as we are only using it to create the tip
but doing setPopupType() to LW after tooltip popup creation.
http://cr.openjdk.java.net/~psadhukhan/8213535/webrev.3/
This is equivalent to using HW tooltip every time on the HiDPI screen, and
unfortunately it has a side effect.
If the tooltip is HW it is drawn in a separate window and is not inherit
opacity/translucency of the parent,
you can check that by these changes in the test:
frame.setLocationRelativeTo(null);
+frame.setUndecorated(true);
+frame.setOpacity(.5f);
frame.setVisible(true);
I still think that using right GC in the tip, is probably better way to fix it.
--
Best regards, Sergey.