• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JTable auto update itself

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

i used JTable for displaying records in database table.when i am adding or updating or deleting the records .they doesnt appear in JTable.

so please provide sample code for the following requirement.

JTable auto update it self as soon as the actual mysql table hasbeen updated.

thanks in advance.
bye
Prakash
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> so please provide sample code for the following requirement.

your 'request' may be a translation hiccup, but not your cross-posting.

for do-it-for-me posts, mosey on over to rent-a-coder
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either you'll have to monitor the table in intervals or you will have to make the database engine trigger an update.

The former will have the problem of being CPU intensive if the interval becomes too small, or not receiving updates in time if they are too large.

I don't know if the latter can be done, and if so how.
 
Marshal
Posts: 79174
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rob Prime:
I don't know if the latter can be done, and if so how.

I am not convinced it is possible; the idea behind JDBC is that Java code interrogates the database, not that the database sends messages to the Java application.
 
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 prakash moturu:

JTable auto update it self as soon as the actual mysql table hasbeen updated.



How is the DB data being updated? Through your UI or external to your UI?
 
reply
    Bookmark Topic Watch Topic
  • New Topic