How to detect data change in Jtable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gobindap
    New Member
    • Feb 2013
    • 25

    How to detect data change in Jtable?

    I am using JTable to store data. How to detect whether any cell contents is changed or not? I want to update data while clicking a button. If i update without detecting the change then data with no change are also required to update. So I want to update only those data whose contents are changed.

    Data can also be update while changing the cursor focus but I think it is not better because it requires frequently communication with database.

    So, Please help me to overcome this problem.
    Thank you for your kind co-operation.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Consider a table model listener: http://docs.oracle.com/javase/tutori...llistener.html

    Comment

    Working...