Force JPopup to be always heavyweight (original) (raw)

Pavel Porvatov pavel.porvatov at oracle.com
Mon Apr 16 12:28:22 UTC 2012


Hi Mario,

2012/4/2 Pavel Porvatov<pavel.porvatov at oracle.com>:

Hi Mario,

I'd suggest to change the javax.swing.JPopupMenu#getPopup method: if (isLightWeightPopupEnabled()) { popupFactory.setPopupType(PopupFactory.LIGHTWEIGHTPOPUP); } else { popupFactory.setPopupType(PopupFactory.HEAVYWEIGHTPOPUP); // Replaced MEDIUMWEIGHTPOPUP } I don't see any regressions, what do you think about that? Regards, Pavel Hi Pavel! Sorry for the delay, for some reason I didn't see this reply right away... Yes, I was thinking something along the lines, since I doubt that LAF really care about this specific property. Which property do you mean? If isLightWeightPopupEnabled property is set to false we can set HEAVY_WEIGHT_POPUP (I don't know reasons why we can't do that) Would you like to commit this or do you want me to prepare a formal patch? I need a patch with a test of the fix. But at first you should read the following doc http://openjdk.java.net/contribute/

Regards, Pavel



More information about the swing-dev mailing list