im new to java, and while running this on eclipse linux mint with java-7-openjdk (i think , although dont know if eclipse has its own sun jdt),
public class Gui extends JFrame{
private JComboBox box;
private JLabel picture;
private static String[] filename = {"b.PNG","x.PNG"};
private Icon[] pics = {new ImageIcon(getClass().getResource(filename[0])),
new ImageIcon(getClass().getResource(filename[1]))};
Exception in thread "main" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at bucky.Gui.<init>(Gui.java:10)
at bucky.apples.main(apples.java:12)
I cant see what the problem is (linux mint 15 cinnamon)