Why setValue at not working on Jtable?

Posted by Nitz on Stack Overflow See other posts from Stack Overflow or by Nitz
Published on 2010-05-10T04:44:15Z Indexed on 2010/05/10 4:48 UTC
Read the original article Hit count: 307

Filed under:
|

Hey Guys
I am doing project on java.
In one of the class, I am working on jtable.
Now what i am doing is,

  • In the table data will be loaded from the database.

Now i want to change some value at some exact row and column.

so for that i am using jtable's setValue function. which is like this....

grayCardTbl.setValueAt(Float.valueOf(String.valueOf(pdiff)),1,4);

I have checked the "pdiff" variable, it is perfect.

i had total 5 columns and 10 rows. So now problem with rowindex and column index.

and after this i have also refresh the table. but still it is not reflecting on table.

© Stack Overflow or respective owner

Related posts about java

Related posts about jtable