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

JScrollPane.setColumnHeader() refers to setRowHeaderView()

XMLWordPrintable

    • b46
    • x86
    • windows_xp

      A DESCRIPTION OF THE PROBLEM :
      The documentation for JScrollPane.setColumnHeader() contains a sentence that reads:

      "Most applications will find it more convenient to use setRowHeaderView to add a row header component and its viewport to the scrollpane."

      This looks like a copy and paste error, since the user would clearly not find it more convenient to add a row header when he wishes to add a column header.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Most applications will find it more convenient to use setColumnHeaderView to add a column header component and its viewport to the scrollpane.
      ACTUAL -
      Most applications will find it more convenient to use setRowHeaderView to add a row header component and its viewport to the scrollpane.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JScrollPane.html#setColumnHeader(javax.swing.JViewport)
      ###@###.### 2005-04-13 21:42:56 GMT

            shickeysunw Shannon Hickey (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: