Hi, I'm making a pacman game using Netbeans 3.5.
I have a simple JApplet shown here:
And also a
java class called PacmanGame.java, which extends JPanel, and overrides the paintComponent(Graphics g) method.
Now, I also have a java class called Sprite.java, which is used to draw the sprites.
When I execute PacmanApplet in Netbeans, everything is fine, and the sprites come up on screen. However if I try to invoke the
applet using an HTML file (see below):
then the HTML page doesnt show anything but a gray square.
Then, if I remove the line of code from PacmanGame that uses the Sprite class it works again, but without the sprites.
I'm not sure whats going on here, all files are in the same directory (outside of WEB-INF)
Any help will be very much appreciated. Thanks