File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic data : refresh screen

 
achana chan
Ranch Hand
Posts: 277
  • 0
  • Mark post as helpful
  • send pies
  • 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 :-)
 
Tamizh Selvan
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic