package markharder.potatohead;

import javax.swing.JComponent;
import javax.swing.JFrame;

/**
 * A potato head accessorizor
 *
 * @author Mark Harder
 * @version 1.0
 */
public class PotatoHead extends JComponent {
    public static PotatoHead spud;

    public PotatoHead() {
    }

    /**
     * The entrypoint, create the frame, run the game
     *
     * @param args String arguments (unused)
     */
    public static void main(String[] args) {
        spud = new PotatoHead();

        System.out.println(spud);
    }
}


@@ -82,16 +82,65 @@
 .JFrame;
+%0Aimport java.awt.Graphics;%0Aimport java.awt.Color;
 %0A%0A/**%0A *
@@ -327,16 +327,139 @@
 %0A    %7D%0A%0A
+    public void paint(Graphics g) %7B%0A        g.setColor(new Color(100, 10, 10));%0A        g.fillRect(0, 0, 480, 600);%0A    %7D%0A%0A
     /**%0A
@@ -629,65 +629,385 @@
     
-spud = new PotatoHead();%0A%0A        System.out.println(spud
+JFrame frame = new JFrame();%0A        spud = new PotatoHead();%0A%0A        // set up the window%0A        frame.setUndecorated(true);%0A        frame.add(spud);%0A        frame.pack();%0A        frame.setSize(480, 600);%0A        frame.setResizable(false);%0A        frame.setLocationRelativeTo(null);%0A        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);%0A        frame.setVisible(true
 );%0A 

Set up a basic window