• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed on the java-focus

 
Aurelien Faillon
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

First of all, excuse my poor english...

I want to create a java-swing application with JTable and where you have to press a JButton to send the elements which are in the JTable to a database... but when I press the button the last cell that I have complete in the JTable seems to be not recorded... the object inside is "null"...

so I think I have to add a focus for change it and validate the record in the JTable, but I don't know how...

could you help me?
 
Aurelien Faillon
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found the solution...

just add this line:

table.editCellAt(0,1);

so the edited cell (the (0,4)'s one ) is deselected and his value is recorded...

I have a problem.... I find the solution...

thanks for..... reading..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic