This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
Don't get me started about those stupid light bulbs.
 
subject: jtable editing