/[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.73 by langel, Fri Sep 2 18:03:25 2005 UTC revision 1.74 by langel, Fri Sep 2 18:45:36 2005 UTC
# Line 1487  public class BasicTreeUI Line 1487  public class BasicTreeUI
1487                  count++;                  count++;
1488                  Object nextNode = getNextVisibleNode(node);                  Object nextNode = getNextVisibleNode(node);
1489                  if (nextNode != null)                  if (nextNode != null)
1490                    maxWidth = Math.max(                    maxWidth = Math.max(maxWidth,
                                       maxWidth,  
1491                                        (int) (getCellBounds(0, 0, nextNode).getWidth()));                                        (int) (getCellBounds(0, 0, nextNode).getWidth()));
1492                  node = nextNode;                  node = nextNode;
1493                }                }
# Line 2270  public class BasicTreeUI Line 2269  public class BasicTreeUI
2269            if (bounds.contains(click.x, click.y))            if (bounds.contains(click.x, click.y))
2270              inBounds = true;              inBounds = true;
2271            else if (hasControlIcons()            else if (hasControlIcons()
2272                     && (click.x < (bounds.x - rightChildIndent + 5) && click.x > (bounds.x                     && (click.x < (bounds.x - rightChildIndent + 5) &&
2273                                                                                   - rightChildIndent - 5)))                         click.x > (bounds.x - rightChildIndent - 5)))
2274              cntlClick = true;              cntlClick = true;
2275    
2276            if ((inBounds || cntlClick) && tree.isVisible(path))            if ((inBounds || cntlClick) && tree.isVisible(path))
# Line 2286  public class BasicTreeUI Line 2285  public class BasicTreeUI
2285                      tree.expandPath(path);                      tree.expandPath(path);
2286                  }                  }
2287    
2288                if (tree.isEditable())                if (!cntlClick && tree.isEditable())
2289                  startEditing(path, e);                  startEditing(path, e);
2290              }              }
2291          }          }

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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