<Swing Dev> internal API usage: PopupFactory.setPopupType()

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Apr 29 15:55:08 UTC 2016


Hi, Alan.
If you write your own l&f then you can change this behavior via
         PopupFactory.setSharedInstance(spf);
In this case you can override PopupFactory.getPopup() and always return 
popup you want.

At least the Aqua look and feel force HW popups via this way.

On 18.01.16 23:57, Alan Snyder wrote:
> I want a solution that forces popups to be heavyweight and does not allow the application any choice in the matter.
>
> My UI could set this flag on each popup, but the application could reset the flag.
>
>   Alan
>
>
>> On Jan 18, 2016, at 12:18 PM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
>>
>> Hi, Alan.
>> Did you try to use JPopupMenu.setLightWeightPopupEnabled() for this usecase?
>>
>> On 17/01/16 07:19, Alan Snyder wrote:
>>> I have submitted an RFE to make the functionality
>>> of PopupFactory.setPopupType() publicly available.
>>>
>>> JI-9028692
>>>
>>> Regards,
>>>
>>>   Alan
>>>
>>
>>
>> --
>> Best regards, Sergey.
>


-- 
Best regards, Sergey.



More information about the swing-dev mailing list