Ok I am kinda new to java and I am trying to load an image and display it to the screen. It compiles without errors but it refuses to load the image.
Here is the code:
It just shows an empty screen without any errors.Code:
public class MyPro extends java.applet.Applet
public void init()
img = getImage(getCodeBase(), "Mario.bmp");
public void paint(Graphics g)
g.drawImage(img, 0, 0, this);
What am I doing wrong?