Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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: 2180
    
    7
See: Table Stop Editing
Giuseppa Cefalu
Ranch Hand

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

It works great.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editing last cell in JTable