I noticed that the control icons are painted behind the lines drawn for the tree. I ran into this problem when working on BasicTreeUI. You need to make sure all the lines are painted before painting the control icons. It does not work if you try to paint both simulataneously.
Let me know if you need further clarification, Lillian On Sun, 2006-04-23 at 20:17 +0200, Audrius Meskauskas wrote: > It was discovered that JTree multiple element selection is currently not > working as expected. This path fixes the tree ability to select multiple > nodes, if permitted. > > 2006-04-23 Audrius Meskauskas <[EMAIL PROTECTED]> > > * examples/gnu/classpath/examples/swing/TreeDemo.java: > (createContent): Added check box to swith between single and > multiple selection. > * javax/swing/JTree.java (leadSelectionPath): Removed. > (addSelectionInterval): Explained. (getLeadSelectionPath): > Request the path from model. (getPathsBetweenRows): Explained. > (setLeadSelectionPath): Set the path in model. > * javax/swing/plaf/basic/BasicTreeUI.java > (TreeIncrementAction.actionPerformed, isMultiSelectionEvent, > isToggleSelectionEvent, selectPath, selectPathForEvent): Rewritten. > (MouseHandler.mousePressed): Call selectPathForEvent.
