[Top][All Lists]

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

[cp-patches] Patch: JTable and JTree fixes

From: Lillian Angel
Subject: [cp-patches] Patch: JTable and JTree fixes
Date: Mon, 07 Nov 2005 17:26:13 -0500

Fixed a NPE in JTable.
Fixed some issues in JTree, where the root or children are set
explicitly to be invisible.

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

        * javax/swing/
        (tableChanged): Cleared selection if there are no more rows. 
        Prevents a NPE.
        * javax/swing/
        (scrollRectToVisible): No need to set the selection path here.
        (expandPath): Sometimes it is required to set the state of a 
        leaf, especially if the leaf is the root node.
        * javax/swing/plaf/basic/
        (getRowCount): Added call to updateCurrentVisiblePath, so the
        correct value is always returned.
        (paint): No need to paint if the visible path is null.
        (propertyChange): Implemented.
        (paintRecursive): Added check for visibility of child. If it is
        not visible because it was explicitly set to be hidden, no lines
        should be drawn.
        (paintControlIcons): Likewise.
        (getPreviousNode): Fixed check to include root.
        (paintRow): Set focus to be true (this will change in the 
        (updateCurrentVisiblePath): Fixed check to call getNextNode if
        the current node is a leaf (more efficent than calling 
        * javax/swing/tree/
        (getTreeCellRendererComponent): Changed to draw border if node 
        has focus.

Attachment: patch.diff
Description: Text Data

reply via email to

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