PDA

View Full Version : Java applet -> Animated backround. How?


J-G
07-12-2007, 05:36 PM
Hi,
One fast question, how to do animated backrounds to java applets?

ess
07-16-2007, 04:50 PM
By manipulating the contents pane of an applet, calling the repaint method in a timely managed code to redraw/repaint text/image(s) inside the ContentsPage of a given applet. The same is also true for JFrames, Frame from the java.awt.* package.

Check out the following url which illustrates a simple example of repainting on an applet....by means of event handling.

http://www.javacoffeebreak.com/java107/java107.html

Cheers,
Ess