This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

jTable refresh?

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
In my application ,i am using jTable.
jTable consist of four column.
At fourth column ,check box is being added,during run time.

So now the problem description.
Suppose in database table there are four records,i get those records,
and set them in jTable,with corresponding check box.

So now in jtable there are four records as well as four corresponding check box.

next ,when in table there are only two records,programtically i will get
those records, set them again in jtable ,but now this time two records are
set in jtable ,with corresponding check box,but the next two other rows
also contain the check box.

so please write, what could be the problem

regards
Sachindra
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sachindra Pratap:
.., set them again in jtable ,



How are you "setting" them in the table? Do you have a customized table model which holds the data?
Usually, when you tweak the model, you also need to fire the fireTableDataChanged() for the changes to be reflected in the table.
If you can post the "set them in the table" code, we can try and identify what is going wrong.
 
New rule: no elephants at the chess tournament. Tiny ads are still okay.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic