classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: Tree defaults fix


From: Lillian Angel
Subject: [cp-patches] Patch: Tree defaults fix
Date: Tue, 15 Nov 2005 16:36:00 -0500

Fixed the rowHeight defaults for JTree to match the JDK/JRE.

2005-11-15  Lillian Angel  <address@hidden>

        * javax/swing/plaf/basic/BasicLookAndFeel.java
        (initComponentDefaults): Default rowHeight for tree's should
        be 0. This is Sun and IBM's default.
        * javax/swing/plaf/metal/MetalLookAndFeel.java
        (initComponentDefaults): Default rowHeight for tree's should
        e 0. This is Sun and IBM's default.
        * javax/swing/plaf/basic/BasicTreeUI.java:
        Added a default rowHeight field.
        (setRowHeight): Set the rowHeight to the class default if 
        parameter is 0. Tree row height should never be set to 0. 20 is 
        the minimum.
        (installDefaults): fixed call to tree.setRowHeight
        (shouldPaintExpandControl): Added to check to prevent NPE.

Attachment: patch.diff
Description: Text Data


reply via email to

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