Hi Ranchers,
I'm having trouble getting a table model to work and wondered if anybody could explain to me exactly how TableColumnModelListener works.
My table model implements TableColumnModelListener ard therefore all its associated methods (e.g. columnRemoved(TableColumnModelEvent e), columnMoved(TableColumnModelEvent e) etc).
However, how do i get these methods to invoke? I thought it would automatically detect table changes, but this is not happening.
Specifically, in my program i am adding and removing columns. I want the table model to keep track of the current column count by doing something like columnCount++ or columnCount-- in the columnRemoved/columnAdded methods. After a column is added or removed, i make the call
Is there anything else i should be doing/considering?
Thanks for any advice!