This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jtable editing
 
Similar Threads
JTable
Currency in JTable
cells in Jtable
JTable and events
JTable Editing