Drawing Applet

Hi, I wrote a simple applet that lets the user draw. I want to be able to change the color of the pen (g.filloval)'s using radio buttons. Ive looked up how to use radio buttons but nothing I found really helped with my situation. Heres what I have so far:

1) I recommend that you use Swing and JApplets unless you have a very compelling reason to do otherwise.
2) You should then draw in a JPanel and display the drawing JPanel in your JApplet.
3) The painting goes on in the JPanel's paintComponent method.
4) There are many ways to have JRadioButtons change the color of the pen, but how you do it will depend a bit on your program structure. I favor having the drawing done in a JPanel that's in its own class with a public setPenColor(Color c) method. Then this method can be called on the drawPane object from within an ActionListener attached to your radio buttons.