@@ -0,0 +1,525 @@
+public class ResizeTest%0A%7B%0A%09public static void main(String%5B%5D args)%0A%09%7B%0A        double rsize = 10;%0A        double bsize = 1;%0A%09%09GameArena a = new GameArena(300,300);%0A%09%09Rectangle r = new Rectangle(150,150, rsize, rsize, %22GREEN%22);%0A%09%09Ball b = new Ball(150,150, bsize, %22RED%22);%0A%09%09double speed = 1.0;%0A%0A%09%09a.addRectangle(r);%0A%09%09a.addBall(b);%0A%0A%09%09while(true)%0A%09%09%7B%0A            rsize += speed;%0A            bsize += speed/2;%0A%0A            r.setWidth(rsize);%0A            r.setHeight(rsize);%0A            b.setSize(bsize); %0A%0A%09%09%09a.pause();%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add Shape Resize sample