Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

newbee with JTable  RSS feed

 
Ko Wey
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to bother the forum with this stupid question, but alas I don't find the answer myself.
I have a Jtable with a DefaultTableModel. My application saves the data of the jtable by serialisation. Works well, except that the last entry is often not saved. After I have edited a cell, i have to click on another cell, just to "validate" that last entry, so that it can be stored in the "vector of vector" of the model and be saved.
How should I fire that validation programmatically? I used focuslisteners and events etc, but I get a lot of extra code for nothing?
As I said, I am a newbee and spoiled by Visual Basic, I guess.
Thanks for any tip.
 
Tim Troy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try calling this:
 
Ko Wey
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!