<Swing Dev> [9] Review request for JDK-8147521 [macosx] Internal API Usage: setPopupType used to force creation of heavyweight popup
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Tue May 10 18:55:29 UTC 2016
On 10.05.16 17:36, Alexandr Scherbatiy wrote:
>> Since both of these methods are public I am not sure how it will solve
>> the initial requested problem: enable HW popup w/o possibility of
>> change it by the user's code?
>
> I believe that a user can do something like:
> --------------
> JPopupMenu popupMenu = new JPopupMenu();
> popupMenu.setLightWeightPopupEnabled(true);
> popupMenu.showPopup();
> -------------
> and it overrides the popup factory type.
The intention of this bug was to ignore this request, like it was done
by Aqua right now.
> Probably the JPopupMenu.showPopup() should be updated to create a popup
> with necessary type without rewriting the type from popup factory.
--
Best regards, Sergey.
More information about the swing-dev
mailing list