Java Tutorial/Swing Event/TableModelListener

Материал из Java эксперт
Перейти к: навигация, поиск

Listening to JTable Events with a TableModelListener

If you want to dynamically update your table data, you can work with a TableModelListener to find out when the data changes. The interface consists of one method that tells you when the table data changes.



   <source lang="java">

public interface TableModelListener extends EventListener {

 public void tableChanged(TableModelEvent e);

}</source>