I've been having a problem refreshing data in my JTable, and everyone says to use
fireTableDataChanged();
However, the API doc for this method says
void fireTableDataChanged() Notifies all listeners that all cell values in the table's rows may have changed.
So heres my question: Do I need to register/create a table listener? And if so, how do I do it?
Code example would be perfect!
Thanks!
SCJD, SCBCD, SCJP
Clivant Yeo
Ranch Hand
Joined: May 22, 2004
Posts: 124
posted
0
Hi Sean,
Two TableListeners are added implicitly to the JTable when you created it, as such there is no need to add your own Listeners, unless you want other custom actions to be performed when the fireTableDataXXX method is invoked.