• Post Reply Bookmark Topic Watch Topic
  • New Topic

not getting the cell updated value from jtable  RSS feed

 
venkat anand
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I deadly need your help regarding the jtable .i am using jdk1.4 ..i stuck up at one requirement that ..i am have one column is editable in jtable..
When the end user enter some value (he will not hit enter or any key)just leave that cursor where the cell has been entered the value and hit update.but i am not getting that value..since focus is not been changed.
Could any one have any sample code or suggetions make me com out from this heard situation..Please help me.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically focus has been changed. Clicking on the JButton should move focus from the cell to the button. Would it be possible for you to write up a small demo duplicating your issue and posting it here? It might be easier to debug if we had some of your code to go by.
 
Brian Cole
Author
Ranch Hand
Posts: 936
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by venkat anand:
Hi Ranchers,

I deadly need your help regarding the jtable .i am using jdk1.4 ..i stuck up at one requirement that ..i am have one column is editable in jtable..
When the end user enter some value (he will not hit enter or any key)just leave that cursor where the cell has been entered the value and hit update.but i am not getting that value..since focus is not been changed.
Could any one have any sample code or suggetions make me com out from this heard situation..Please help me.


This sounds like a terminateEditOnFocusLost problem. See this post from last month for details.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!