posted 21 years ago
The table model hast a method getColumnName() which returns the names of the columns whenever the JTable questions them. It will call this method especially after a TableStructureChanges event occured, which would be fired by the TableModel.
Thus, to change the column names (headers):
1. change the columns in the implementation of the
table model (you're free on that)
2. fireTableStructureChanged (that might not be the exact name, but it's something like that) in the table model.
3. the rest should happen automatically!
Chantal