wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Editing last cell in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Editing last cell in JTable" Watch "Editing last cell in JTable" New topic
Author

Editing last cell in JTable

Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121
Hi,

When I enter input in the last cell of the JTable, in order for the input to be saved of obtainable by getValueAt method, I need to clik on another cell. It seems that the last cell edits are not taken care automatically by the JTable. What do I need to do to fix this so that when the user enters the last value in the table, he/she does not need to click on another table to save the inpu. Thank you.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2152
    
    7
See: Table Stop Editing
Giuseppa Cefalu
Ranch Hand

Joined: Jul 15, 2011
Posts: 121
Thank you,

It works great.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Editing last cell in JTable
 
Similar Threads
JTable Question
JTable help
JTable Cell Editing
JTABLE
jtable