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

Explain use of JTable header outside a JScrollPane (in standalone table)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 12/04/99


      C:>java -version
      java version "1.1.7A"

      >\java\java122\bin\java -version
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, native threads, symcjit)

      The API doc for JTable and TableModel imply that the column headers are part of the
      table. However, they automatically show up only when the table is enclosed
      in a JScrollPane; the header is a separate object which is placed in the
      scroll pane's header. If one is using a table stand-alone, it is frustrating
      trying to figure out why the header doesn't show up. The docs should explain
      that if you have a stand-alone table, and want the header displayed, you
      must get it using getTableHeader() and add it separately. They should also
      explain what the contract is as far as sizing of the header(s) and the table
      when column geometry changes.
      (Review ID: 98628)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: