How can I set the column names for a JTable after creating it with no argument constructor?
Created May 4, 2012
Voytek Jarnot
Use the following code:
myJTable.getColumnModel().getColumn(columnIndex). setHeaderValue("New Column Name");
columnIndex is the (0 based) index of the column whose name you wish to change (in this case to "New Column Name").