simple intro java game programming
<p>My question is where did i go wrong. it is supposed to make a frame where i can control an oval, move it around back forth left and right, and then make it move with the arrows. but right now i cant even make the oval, or even insert a word into it.</p>

<pre><code>import java.awt.Graphics;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import javax.swing.JFrame;


public class JavaGame extends JFrame{
    int x, y;
    public class AL extends KeyAdapter {
        public void keyPressed(KeyEvent e){
            int keyCode = e.getKeyCode();
            if(keyCode ==e.VK_LEFT){
            x--;
        }
        if(keyCode ==e.VK_RIGHT){
            x++;
        }
        if(keyCode ==e.VK_DOWN){
            y--;
        }
        if(keyCode==e.VK_UP){
                y++;
        }
    }
    public void keyReleased(KeyEvent e){

    }
}
public JavaGame (){
    addKeyListener(new AL());
    setTitle("Game");
    setSize(250,250);
    setResizable(false);
    setVisible(true);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
}
public void Paint(Graphics g){
    x = 150;
    y = 150;
    g.fillOval(x, y, 15, 15);
    repaint();
}
public static void main(String[] Args){
new JavaGame();
}
}
</code></pre>
