JTable column headers not displaying using custom table model
843804Mar 21 2005 — edited Mar 21 2005Hi,
I'm attempting to use a custom table model (by extending AbstractTableModel) to display the contents of a data set in a JTable. The table is displaying the data itself correctly but there are no column headers appearing. I have overridden getColumnName of the table model to return the correct header and have tried playing with the ColumnModel for the table but have not been able to get the headers to display (at all).
Any ideas?
Cheers