by jesse

why doesnt an image change in a java applet when it changes on the server?

java buffers images, this is good, it saves bandwidth, but it is also badly documented, so, what you havce to do to get the images to change is call flush() on the Image, then redraw it, but this will throw an exception in some browsers if you flush an image that is on the screen. so, have two images, with the same source url, alternate which is on the screen, call flush on the one not currently onscreen, then call repaint(), and draw the image you just flush()ed.


Read more of   The Yak's Frequently Questioned Answers   (mod.2010-02-10)

419.   What is december 25th or christmas for jewish people in america?   [jake/2004-12-26]
390.   Where can I learn more about the fascinating game of Go (aka Wei chi, Weiqi, Baduk, etc)   [leif/2003-10-20]
378.   What is the meaning of MSD in relation to OpenPGP/GnuPG/PGP?   [jake/2003-09-22]
364.   What is the best list of security tools at the moment?   [jake/2003-07-06]
220.   Where can I find serial/parallel controllable, backlit LCD screens?   [rupe/2001-05-30] ( sidd/2001-05-30 )
211.   Who are strick's net.gods?   [strick/2001-04-08] ( rupe/2001-05-22 rupe/2001-05-22 )
207.   how can i access a virtual console greater than 12 in linux?   [jesse/2001-04-03]
185.   what are some cool domain names?   [jesse/2001-02-26] ( josh/2001-04-03 )
164.   what are the first 4096 digits of the numerical constant PI?   [jesse/2001-01-17]
146.   What commands do UNIX system administrators commonly use?   [rupe/2000-11-09] ( strick/2001-01-04 )
122.   What is the VAXorcist.?   [rupe/2000-09-25]
113.   Why is my Python script returning a built in operation error?   [rupe/2000-07-21]
104.   which pacbell pcs store in the bay area has the best prices and selection?   [jesse/2000-06-18]
69.   What is the origin of The Yak?   [strick/2000-02-28]
68.   What are Nana's rats names?   [nana/2000-02-28]
41.   Which OS Sucks? Which OS Rules?   [strick/2000-02-02]