Your MyColumnModel code is not doing what you expect. Instead of you could write
But why bother with a ColumnModel at all? Just override the getColumnName() method in MyTableModel to return "Nome"/Sobre nome"/"Idade" and be done with it.
Originally posted by Brian Cole: But why bother with a ColumnModel at all? Just override the getColumnName() method in MyTableModel to return "Nome"/Sobre nome"/"Idade" and be done with it.
Well I guess you would also need to change getColumnCount() to return 3 instead of 5.
But then you can remove both setColumnModel() calls.
Alex Florentino
Ranch Hand
Joined: Dec 12, 2006
Posts: 48
posted
0
Originally posted by Brian Cole: Your MyColumnModel code is not doing what you expect. Instead of you could write
But why bother with a ColumnModel at all? Just override the getColumnName() method in MyTableModel to return "Nome"/Sobre nome"/"Idade" and be done with it.
because my real system... load automatically this infos... table column name and data...
sample my application update my database and this app allowed edit data loaded... and I think if I split code of show column of logic show the data is easy of mantain...