Author: Zafir Anjum
To change the label of a column header use the following code. The code changes the label of the first column header.
table.getColumnModel().getColumn(0).setHeaderValue( "New Label" );
table.getTableHeader().repaint();
It's important to call repaint() otherwise the header label might not change until a later time.
Posted On: 9-Jan-1999