• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable value updation problem

 
Mudunuri Raju
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am almost completed my assignment. I am facing one problem with Jtable. It is very painfull for me to change the design. My JTable have 1st column check box. 2nd column JTable cell(Default value is 1). If I enter 3 and click on Book Flights button always 1 is going instead of 3. If I move the Tab from that cell, or click on another cell the value is getting updated. I tried this so many ways using focus listener etc. Also I am setting the values usinf setValueAt(Object,int,int) method also. Really fed up since 7 days. If some help me, Really very much greatfull and thankfull to you.
Thanks in advance.
Srini
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JTable numbers get entered on validation. Have you tried the KeyListener. That way you can catch when a Key is pressed.
Mark
 
Mudunuri Raju
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. Today it has been solved.
Thanks once again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic