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 how to update fields when a table cell is edited. 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 "how to update fields when a table cell is edited." Watch "how to update fields when a table cell is edited." New topic
Author

how to update fields when a table cell is edited.

Kadir S.
Greenhorn

Joined: Oct 23, 2002
Posts: 5
hi,
I have a table and some other gui components(such as JTextFields) on a JFrame. I use my own TableModel. I want to update some JTextFields with new data, when a specific column is edited.
I don't know whether it is possible or not?
Is there any solution?
Thanks
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
The setValueAt() method can be used to do this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to update fields when a table cell is edited.