The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement
where you can ask and answer Java programming questions.">
artima.com - a resource for Java and Jini developers
Artima | Search | Java | Design | JVM | Jini | Books | Seminars | Subscribe 


Java Answers Forum
March 2001

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:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us