Updating the columnnames i a JTable
Hello
I posted this question in new to java, without much response. Hoping for more here.
I have a class (tm) that implements TableModel. Another class show the JTable using this tablemodel. In the JTable user can change the Strings that is returned by the tm.getColumnName(int col)
, and I was hoping this was reflected in the JTable as well when I did a jTable.updateUI()
, but no. I was advised using JTable.tableChanged(TableModelEvent e)
, and I implemented this unsuccsessfully as jTable.tableChanged(new TableModelEvent(tm))
How can I update the column names in a JTable?
Regard
Fluid

