• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

JTabel value changed - inseert to db.

 
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys,

Quick question: Say I have a JTable 20x10 (big) and the values are inserted to a database (raw by raw - that is, evrery raw is inserted with the same key:

myKey a b c d e g h
myKey i o i k j h g t f
myKey u u u u u u u o

etc

(the user can change the jtable)

MY QUESTION IS: say the user has changed just one value in the table and added another raw - how could i just update the value he changed and insert the new raw?

(for the new raw, i guess firstly I have to count the num of raws and then see if there's any diff - unless you have a better idea - but what about the change of value???)

Thanks
Ppr
reply
    Bookmark Topic Watch Topic
  • New Topic