code: protected void addPackagesList(PackageDoc[] packages, Content tbody) {
          for (int i = 0; i < packages.length; i++) {
              if (packages[i] != null && packages[i].name().length() > 0) {
                  if (configuration.nodeprecated && Util.isDeprecated(packages[i]))
                      continue;
                  Content packageLinkContent = getPackageLink(packages[i],
                          getPackageName(packages[i]));
                  Content tdPackage = HtmlTree.TD(HtmlStyle.colFirst, packageLinkContent);
                  HtmlTree tdSummary = new HtmlTree(HtmlTag.TD);
                  tdSummary.addStyle(HtmlStyle.colLast);
                  addSummaryComment(packages[i], tdSummary);
                  HtmlTree tr = HtmlTree.TR(tdPackage);
                  tr.addContent(tdSummary);
                  if (i%2 == 0)
                      tr.addStyle(HtmlStyle.altColor);
                  else
                      tr.addStyle(HtmlStyle.rowColor);
                  tbody.addContent(tr);
              }
          }
      }
docs: Adds list of packages in the index table. Generate link to each package.
  
  @param packages Packages to which link is to be generated
  @param tbody the documentation tree to which the list will be added