classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: Menu fix


From: Lillian Angel
Subject: [cp-patches] Patch: Menu fix
Date: Fri, 21 Oct 2005 11:16:44 -0400

This fixes some of the size problems with popup menus.

2005-10-21  Lillian Angel  <address@hidden>

        * javax/swing/JPopupMenu.java
        (show): Fixed to set the size if it was never set.
        * javax/swing/plaf/basic/BasicMenuUI.java
        (menuDeselected): Added check to prevent NPE.
        * javax/swing/plaf/basic/BasicSeparatorUI.java:
        Removed minSize, horizontalPrefSize, verticalPrefSize and
        maxSize fields. They were causing problems when other classes
        were setting this variables to something else. More reliable if
        actual value is returned.
        (getPreferredSize): Returned appropriate values.
        (getMinimumSize): Likewise.
        (getMaximumSize): Likewise.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]