Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6224698

Documentation for JTree.getPathForRow(int row) is incorrect

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.5.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
      Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      The javadoc documentation for the public TreePath getPathForRow(int row)
      method in javax.swing.JTree incorrectly states:

      Returns:
      the TreePath to the specified node, null if row < 0 or row > getRowCount()

      when it should say:

      Returns:
      the TreePath to the specified node, null if row < 0 or row >= getRowCount()


      REPRODUCIBILITY :
      This bug can be reproduced always.
      ###@###.### 2005-2-02 19:05:01 GMT

            svioletsunw Scott Violet (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: