aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jtable editing