classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: BasicTreeUI and DefaultTableCellRenderer fix


From: Lillian Angel
Subject: [cp-patches] Patch: BasicTreeUI and DefaultTableCellRenderer fix
Date: Thu, 03 Nov 2005 17:04:45 -0500

The ChangeLog fully explains all changes to BasicTreeUI.
For DefaultTableCellRenderer, Roman suggested I fix it this way. Both
ways work, but this looks a bit more intuitive.

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

        * javax/swing/plaf/basic/BasicTreeUI.java
        (mousePressed): If the control icon is clicked, the
        path selected should not be changed.
        (paintRecursively): Moved call to getChildCount before
        loop.
        (paintRow): Added a check to prevent NPE.
        (updateCurrentVisiblePath): Made this slightly more efficent.
        Instead of checking each path, we can check the siblings if the
        current node is not expanded.
        * javax/swing/table/DefaultTableCellRenderer.java
        (getTableCellRendererComponent): Fixed indentation, and changed
        to set the background color if it is not an instance of 
        ColorUIResource. Prevents overriding a user-set color.

Attachment: patch.diff
Description: Text Data

Attachment: patch.diff
Description: Text Data


reply via email to

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