Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Edit a JTable cell, click save button, value isn't stored in JTable

843804Nov 19 2004 — edited Nov 28 2004
I'm editing a JTable cell, just using default editor provided by JTable
I click a save button elsewhere in my GUI
The value typed into the cell so far isn't stored in the TableModel yet and so doesn't get saved.

How can I make sure the value gets stored in the JTable in the above scenario when the JButton is pressed but before saving.

Preferably I'd like the code with the JButton not to have to know about the JTable at all.

Cheers,
D
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 26 2004
Added on Nov 19 2004
2 comments
346 views