In what way could this be done in time of execution, once the names have been previously set?
In what way could this be done in time of execution, once the names have been previously set?
If at the moment of executing the program and then you want to change the columns you would have to implement some method doing the following:
public void changeColumnName(int __COLUMN__, String __NAME__){
JTableHeader head = Tabla.getTableHeader();
TableColumnModel tcm = head.getColumnModel();
TableColumn tabCM = tcm.getColumn(__COLUMN__);
tabCM.setHeaderValue(__NAME__);
Tabla.repaint();
}
The rest is to call the function and pass the arguments