Title: JTable Header
I came across the same problem when I ported my application to java1.3. It happens in very few cases. To show header I set its preferred size.
 
table.getTableHeader().setPrefferedSize(table.getRowHeight());
 
hope it helps
 
- Bharat
----- Original Message -----
Sent: Thursday, February 08, 2001 5:14 PM
Subject: JTable Header

Hi,

I saw you anser to a qestion in a mail list. It was about how to hide a JTables header.

I was hoping you could help me. I have the opposite problem. I am creating a new TableColumnModel and adding my own Columns to it. I then add the TableColumnModel to the JTable along with the TableModel. The problem is that the Table header does not show, however, the columna are getting sized correctly.

Can you help? I hope so.

Thanks

Guy

Reply via email to