CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Lillian Angel <[EMAIL PROTECTED]> 05/11/07 22:27:31
Modified files: . : ChangeLog javax/swing : JTable.java JTree.java javax/swing/plaf/basic: BasicTreeUI.java javax/swing/tree: DefaultTreeCellRenderer.java Log message: 2005-11-07 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/JTable.java (tableChanged): Cleared selection if there are no more rows. Prevents a NPE. * javax/swing/JTree.java (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/BasicTreeUI.java (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 future). (updateCurrentVisiblePath): Fixed check to call getNextNode if the current node is a leaf (more efficent than calling getNextSibling). * javax/swing/tree/DefaultTreeCellRenderer.java (getTreeCellRendererComponent): Changed to draw border if node has focus. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5501&tr2=1.5502&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JTable.java.diff?tr1=1.59&tr2=1.60&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JTree.java.diff?tr1=1.49&tr2=1.50&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTreeUI.java.diff?tr1=1.106&tr2=1.107&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeCellRenderer.java.diff?tr1=1.21&tr2=1.22&r1=text&r2=text