This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Jtable column header
Posted by Arshi on March 21, 2001 at 3:53 AM
> hi Hema, U need to make a vector of column names and directly pass this vector into the constructor of JTable class. If u need dynamic column names to de displayed then define a table model for that table and use setColumn(Vector) method. Set this model after everytime u set new columns by using the setModel(TableModel) method.
Replies:
|