<Swing Dev> Force JPopup to be always heavyweight

Mario Torre neugens.limasoftware at gmail.com
Mon Apr 16 12:13:39 UTC 2012


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.LIGHT_WEIGHT_POPUP);
>        }
>        else {
>            popupFactory.setPopupType(PopupFactory.HEAVY_WEIGHT_POPUP); //
> Replaced MEDIUM_WEIGHT_POPUP
>        }
>
> 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.

Would you like to commit this or do you want me to prepare a formal patch?

Cheers,
Mario

-- 
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

IcedRobot: www.icedrobot.org
Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/

Please, support open standards:
http://endsoftpatents.org/



More information about the swing-dev mailing list