CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Lillian Angel <[EMAIL PROTECTED]> 05/07/06 18:06:01
Modified files: . : ChangeLog javax/swing/plaf/basic: BasicTreeUI.java javax/swing : JTree.java javax/swing/tree: DefaultTreeCellRenderer.java DefaultTreeSelectionModel.java Log message: 2005-07-06 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/JTree.java Initialized the Hashtable. (addSelectionPath): removed redundant code. (doExpandParents): added in line so that state is changed for current path. Changed while loop to if statement, an infinite loop was occurring. * javax/swing/plaf/basic/BasicTreeUI.java (getPathForRow): Implemented to work with visibility. (isLeaf): Implemented (mouseClicked): add in check for expand/collapse. Selection for DISCONTIGUOUS tree selection is implemented. (treeExpanded): called repaint, so the tree updates visually when something is expanded. (treeCollapse): Similar to treeExpanded. (paintLeaf): changed to paint leaf only when visible. (paintNonLeaf): paints only when visible. (paintRecursive): lines for tree are only painted when needed. checked for visibility of current object and parent. * javax/swing/tree/DefaultTreeCellRenderer.java (getTreeCellRendererComponent): setting icons when expanded. * javax/swing/tree/DefaultTreeSelectionModel.java (clearSelection): set leadPath to null because selection should be completely reset. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.4004&tr2=1.4005&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTreeUI.java.diff?tr1=1.14&tr2=1.15&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/JTree.java.diff?tr1=1.27&tr2=1.28&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeCellRenderer.java.diff?tr1=1.8&tr2=1.9&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeSelectionModel.java.diff?tr1=1.16&tr2=1.17&r1=text&r2=text _______________________________________________ Commit-classpath mailing list Commit-classpath@gnu.org http://lists.gnu.org/mailman/listinfo/commit-classpath