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

in JTree, the doubled call to getPathForRow seems to be extra

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • x86
    • windows_nt



      Name: ssT124754 Date: 01/31/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      I found this method body in JTree, the doubled call to getPathForRow seems to
      be useless?

          /**
           * Returns the <code>Rectangle</code> that the node at the specified row is
           * drawn in.
           *
           * @param row the row to be drawn, where 0 is the first row in the
           * display
           * @return the <code>Rectangle</code> the node is drawn in
           */
          public Rectangle getRowBounds(int row) {
      TreePath path = getPathForRow(row);

      return getPathBounds(getPathForRow(row));
          }
      (Review ID: 115846)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            ssultanasunw Shaheen Sultana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: