Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in reading JTable cell data.

 
Bala Gangadhar
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to Swings.
As part of my swings app, i am using Jtable to let the user enter some data.
I am using below code to the read the data from the table.



I am unable to read the content of the cell which has focus. I mean if the user enters three data in three rows and the last column of the last row still has the focus with some user entered data, if I read this cell data it is coming as null.

Is this default behaviour of the JTable which can' t be changed or any fix for it?

Thanks in advance...

Bala.
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My posts about this
 
Bala Gangadhar
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!