File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable " Watch "JTable " New topic


nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
Please guide me how I detect data change in table
how i tablelistner to detect data change please give right Help
Abhijeet Vaidya

Joined: Apr 16, 2007
Posts: 20

You can implement table model to represent the table data. for that you need to create your own class which will extend AbstracTableModel. This customized tablemodel class can be passed to JTable constructor.

AbstractTableModel provides some methods like getValueAt(row, column) , setValueAt(object, row, column) etc. These methods will be called automatically when data is displayed/changed.

So you can write your own code to populate the data beans with the changed data in setValueAt().

I agree. Here's the link:
subject: JTable
It's not a secret anymore!