This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes jtable editing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtable editing" Watch "jtable editing" New topic
Author

jtable editing

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
When a user updates the contents of a JTable cell, the setValueAt method is not called until a user cicks on a diferent cell. If the user just closes the window without doing anything else first the last update to the jtable is lost. How can this be corrected?
ms


ms<br />SCJP, SCJD
Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
Try
Garandi
Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
Where would I insert that code?
ms
Abhik Sarkar
Ranch Hand

Joined: Jun 14, 2003
Posts: 61
I suppose it would be in the windowClosing method of a WindowListener on the Frame.
 
wood burning stoves
 
subject: jtable editing