Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable get Old Value in the Listener of change Value

843805Jan 19 2006 — edited Jan 21 2006
Software
--------------
JDK 1.5 Update 6


Requirements
-----------------------
I have a JTable I want to show the sum total of certain Cell Value.So I have added a TableModelListener by which on updating the cell Value I change the total in the JTextField. The Problem is If I change the value then I have to get the previous value that the cell had. How to get that original value before the update.

There is a way by which we can get the same by inserting one dummy column which stores previous value.But this method inserts unneccessary if you require the total of 3 columns and if you require the same thing again and again in different frames

Is There any way by which we can show the total

Thanks in advance

CSJakharia
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2006
Added on Jan 19 2006
11 comments
400 views