It's not a secret anymore!*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Similar Threads
java redirection
How to detect data change in JTable
Windows/Mac screen resolution change
How to detect the end of file
preload select boxes with content