The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

solution

Posted by Chin Loong on January 09, 2002 at 11:31 PM

i found the solution :P

somebody called vinod posted the solution in javaranch.. here it is for all of u if u have the same problem :


"In your button's actionperformed code , add the following code as first line:
table.getCellEditor().stopCellEditing();

what this does is makes the table's default cell editor to stop editing & stores the value, now you can call tablemodel.getDataVector() ..etc. & get the required value."





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us