The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 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
April 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 without a table model

Posted by Sean Mac Giollarnath on May 31, 2001 at 6:03 AM

Hi, I've created a JTable like this.

JTable table = new JTable(60, 2);

and I've added this to a JScrollPane.

How do I change the column names from the a and b that are given into the headings that I want. Also, how do I make the columns' divider appear in places other than directly down the center of my table.

If I have to create a Table Model, how do I do this?
Thanks.



Replies:

Sponsored Links



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