@@ -0,0 +1,900 @@
+import java.awt.Color;%0Aimport java.awt.Graphics;%0A%0Apublic class DrawGraphics %7B%0A    BouncingBox box;%0A    %0A    /** Initializes this class for drawing.*/ %0A    public DrawGraphics() %7B%0A        box = new BouncingBox(200, 50, Color.RED);%0A    %7D%0A%0A    /** Draw the contents of the window on surface. Called 20 times per second.%0A     * @param surface */%0A    public void draw(Graphics surface) %7B%0A        %0A        /* Drawing a line */%0A        surface.drawLine(50, 50, 250, 250);%0A        %0A        /* Drawing a string */        %0A        surface.drawString(%22String!%22, 50, 50);%0A        %0A        /* Drawing a polygon */%0A        int %5B %5D x = %7B20, 35, 50, 65, 80, 95%7D;%0A        int %5B %5D y = %7B60, 105, 105, 110, 95, 95%7D;%0A        surface.drawPolygon(x, y, 6);%0A        %0A        /* Drawing a box */%0A        box.draw(surface);%0A%0A        /* Drawing a rectangle */        %0A        surface.drawRoundRect(35,45,25,35,10,10);%0A    %7D%0A%7D %0A

Create DrawGraphics.java