• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

dynamic data : refresh screen

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
I need to know how to approach this problem and what I need to read up on.
I have servlets on TC4 which retrieve data from Oracle.
The servlets do something to the data and "send" them back to the applet. The applet (awt) displays the result on the client's screen.
However, it turns out some data is quasi-dynamic, it can change during the day, but not often.
What are some of the ways to refresh the screen when the data changes?
Hopefully it won't be a major modification!
TIA :-)
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
u can call repaint() method or revalidate() method to refresh ur applet. if ur applet has to be repainted more often, override the update(Graphics g) method of ur applet.
hope this help u
Marcus
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like you'd be needing a way for the server to "push" changes to the applet. You might open a socket. The server would have to keep track of the sockets for all the available clients. If the applet is a socket server, the real server can open a connection to a client any time it needs one, and need not hold an open connection all the time. A vendor product I'm using at work does this for workfow. It keeps the address and port of every client in a database, then opens a connection to the client to push work. Is that something you could use?
 
reply
    Bookmark Topic Watch Topic
  • New Topic