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

Error in doc for removeSelectionRow and removeSelectionRows in javax.swing.JTree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • generic
    • generic



      Name: rmT116609 Date: 08/01/2001


      U:\>java -version
      java version "1.3.1-rc2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc2-b23)
      Java HotSpot(TM) Client VM (build 1.3.1-rc2-b23, mixed mode)

      The documentation for the removeSelectionRow is wrong, it reads "path"
      when "row" is meant. See the description of the two similar methods below:

      http://java.sun.com/j2se/1.3/docs/api/javax/swing/JTree.html#removeSelectionRow(int)

      removeSelectionRow
      public void removeSelectionRow(int row)
      Removes the path at the index row from the current selection.

      Parameters:
      path - the TreePath identifying the node to remove

      --------------------------------------------------------------------------------

      http://java.sun.com/j2se/1.3/docs/api/javax/swing/JTree.html#removeSelectionRows(int[])

      removeSelectionRows

      public void removeSelectionRows(int[] rows)
      Removes the paths that are selected at each of the specified rows.

      Parameters:
      row - an array of ints specifying display rows, where 0 is the first row in the
      display
      (Review ID: 129201)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: