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)
======================================================================