this is the source code
works as an applet
but I want to create tests (its due tomorrow :/) for this app and in order to do that I need to run it as an application
so I created a main method:

public static void main(String[] args) {
			PacMan pacMan = new PacMan();
			JFrame window = new JFrame("Sample Applet and Application");
	        window.pack();              // Arrange the components.
	        window.setVisible(true);    // Make the window visible.

but with this main method i get exceptions that i didnt get when i was running it as an applet any ideas what I need to do in order to solve this?

thanks to all helpers.

to accomplish your task instead of extending your class to Applet go for Frame(in
this will do .....