How can I do animation with buttons on an applet?

Using tutorials on the web I've figured out how to make an applet and to do some animation within that applet, but I've been unable to find a single example of an applet that does animation and has controls, such as buttons, on it.

The problem I'm having is that when I do animation in an applet, it draws over the buttons!

[339 byte] By [pcsucia] at [2007-11-26 19:06:09]
# 1
Use a different sub panel for your animation.
hiwaa at 2007-7-9 20:57:10 > top of Java-index,Java Essentials,Java Programming...
# 2
AWT (snicker) or Swing?
DrLaszloJamfa at 2007-7-9 20:57:10 > top of Java-index,Java Essentials,Java Programming...
# 3
use diffrent panels for this purpose keep the buttons on one panel and draw animation over diffrent panel......add these panels to onae main panel ehich will ultimetly go to Applet..Thanks
SUSHANT_Ja at 2007-7-9 20:57:10 > top of Java-index,Java Essentials,Java Programming...