This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable

 
nabi bux
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Please guide me how I detect data change in table
how i tablelistner to detect data change please give right Help
 
Abhijeet Vaidya
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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().


--------------
Thanks,
Abhijeet
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic