I got an image called badguy and it will not draw in the applet. Here is my code below.

package mainpackage;

import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.Graphics;
import java.awt.Image;

public class Test3 extends Applet implements Runnable{

	private static final long serialVersionUID = 1L;
	AudioClip shot;
	Image badguy;
	public void init(){
		shot = getAudioClip(getCodeBase(), "shotgun.wav");
		badguy = getImage(getCodeBase(), "/Test 3/src/mainpackage/badguy.gif");
	public void paint(Graphics g){
		g.drawOval(20, 50, 20, 20);
		g.drawImage(badguy, 50,100, this);
	public void run() {
		// TODO Auto-generated method stub