This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android 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
It's not a secret anymore!