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:
|