if (currentVisiblePath != null) return currentVisiblePath.getPathCount(); return 0;
return treeState.getRowCount();
  public int getRowCount(JTree tree)  {    if (currentVisiblePath != null)      return currentVisiblePath.getPathCount();    return 0;  }