On 22.07.2020 23:37, Prasanta Sadhukhan wrote:

On 23-Jul-20 11:55 AM, Sergey Bylokhov wrote:
On 22.07.2020 22:46, Prasanta Sadhukhan wrote:
Hi Sergey,

Not exactly, that is support of heavyweight popup in PopupFactory class. This 
is in Tooltipmanager which can utilise PopupFactory Heavyweight enhancement but 
there's no way to create HW popup through TooltipManager class which as shown in

http://hg.openjdk.java.net/jdk/client/file/f054a3a03050/src/java.desktop/share/classes/javax/swing/ToolTipManager.java#l338]

can create only LW and MW popup, not HW.

The MEDIUM_WEIGHT_POPUP and the LIGHT_WEIGHT_POPUP passed to the setPopupType 
are just a hints for the
popupFactory, both could be ignored. For example if tooltip will be shown
outside of the owner then the HW popup will be used(even if LW or MW were 
requested).
And to expose the PopupFactory.setPopupType() to the user the fix for 
JDK-8147521 was implemented,

OK, but I dont think that's right as setPopupType() is not public and not 
available to the user. Maybe for this bug, we can just make that method 
public!!!!

That was the exact purpose of the JDK-8147521, to make the functionality of the 
setPopupType() public, without making the method itself public.


--
Best regards, Sergey.

Reply via email to