/[classpath]/classpath/javax/swing/plaf/basic/BasicTreeUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTreeUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.85 by langel, Wed Oct 5 21:29:18 2005 UTC revision 1.86 by langel, Wed Oct 5 21:50:17 2005 UTC
# Line 3144  public class BasicTreeUI Line 3144  public class BasicTreeUI
3144             if (!mod.isLeaf(node))             if (!mod.isLeaf(node))
3145               max = mod.getChildCount(node);               max = mod.getChildCount(node);
3146        
3147             if (!node.equals(mod.getRoot()))             if (!node.equals(mod.getRoot()) &&
3148                   (tree.isRootVisible() || getLevel(node) != 1))
3149               icon.paintIcon(tree, g, indentation  - rightChildIndent -  3, h);               icon.paintIcon(tree, g, indentation  - rightChildIndent -  3, h);
3150                        
3151             if (tree.isExpanded(path))             if (tree.isExpanded(path))
# Line 3691  public class BasicTreeUI Line 3692  public class BasicTreeUI
3692            current = current.pathByAddingChild(next);            current = current.pathByAddingChild(next);
3693          else          else
3694            current = new TreePath(next);            current = new TreePath(next);
3695            
3696            // FIXME: Inefficent to have 2 loops when the
3697            // tree is very large. Find a better way.
3698          do          do
3699            next = getNextNode(next);            next = getNextNode(next);
3700          while (next != null          while (next != null

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26