Code /* TestShapes2.java CIS 260 2005-11-05 David Klick This is the implementation of the TestShapes program as a JApplet with the resize problem fixed. Resizing no longer blanks out the applet because the repainting works reliably now. */ /* */ import java.awt.*; import javax.swing.*; public class TestShapes2 extends JApplet { private Shape[] shapes = new Shape[10]; public void init() { // create the 10 randomized shapes to be drawn int x, y, r, w, h, n, i; for (i=0; i