I suggest that you create your GUI in a JPanel -- that way the paintComponent method will work, and then place this JPanel into your JApplet's contentPane.
edit: also in this section here you desire to do animation (I'm guessing). If you want to see the image grow, you'll probably want to use a Swing Timer not the while loop, and you definitely don't want to have this program logic and a repaint call in the paintComponent method.
Zach Miller wrote:Ok thanks, I wasn't sure about the Swing Timer, that's what I was going to use, but I couldn't figure out how to implement it properly. I'll figure that out, and ill work on the JPanel. Thanks, I appreciate the advice.
No problem. Here's a general skeleton of code that has worked for me, and may work for you, but you'd have to supply the details.
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
Applets should NOT use System.exit(). Its probably buried in: