Can't find symbol Image

I’m getting this error:


import java.applet.*;
import java.net.*; 

public abstract class GameObject extends Applet{

	private int x;
    private int y;
    private float x_velocity;
    private float y_velocity;
	private Image image;

	public void setX(int new_x) {x = new_x;}
	public void setY(int new_y) {y = new_y;}
	public void setXVelocity(float new_x_velocity) {x_velocity = new_x_velocity;}
	public void setYVelocity(float new_y_velocity) {y_velocity = new_y_velocity;}

	public int getX() {return x;}
	public int getY() {return y;}
	public float getXVelocity() {return x_velocity;}
	public float getYVelocity() {return y_velocity;}

	public void loadImage(String filename) {
	// load file Land.jpg
	image = getImage (getCodeBase(), filename); 
	}

    public void Draw(Graphics g) {
    // drawing the image: g.drawImage (name, x- value, y - value, frame)
	g.drawImage (image, getX(), getY(), this);
    }

    public abstract void Update();
    
}

Any ideas?

import java.awt.*;

Ok, Thank You.

If you get an IDE like Eclipse (:)) or NetBeans it will point this stuff out while you edit, before you even try to compile it :slight_smile: