I'm sooo close. Please help. I want to make column headings for my table. The headings aren't showing up. If I say tc.setCellRenderer( new myRend() ); it uses my "header renderer" for each cell so I know that part works. When I say tc.setHeaderRendere( new myRend() ) it doesn't break but it doesn't do anything. I can see the constructor being called via a sysout but it is never getting to the getTableCellRendererComponent method - leads me to believe it doesn't think it has any cells to render...but - if I print to sysout the header value tc.getHeaderValue() it shows the string I want to display. I have to be close. Any guesses? Muchas gracias.
glen kaatz
Greenhorn
Joined: Apr 29, 2001
Posts: 6
posted
0
...I found out that the headers display if I drop the table in a JScrollPane. How do I get them to display without a JScrollPane? Any ideas?