I am following the zetcode Snake java games tutorial and always get this error:
ImageIcon iid = new ImageIcon(this.getClass().getResource(\"ball.png\")); bal
The resource so named wasn't found. It needs to be in the same directory as the .class file you are calling it from. See the Javadoc.