Background Image throws a null pointer exception and does not run
logo.setIcon(resourceMap.getIcon("logo.icon")); // NOI18N
logo.setName("logo"); // NOI18N
is trying to access an image from a resources folder.
The folder is com.test.suzy.dct.gui.rescources and contains the image as a png called logo.png
The main package is called Gui and I am trying to create a panel type wizard- so there are five panels with five different classes. I am trying to get this code to work in a panel called Initial.java which is where this code lies- but when calling the main method it does not run and throw a null pointer at this line of code.
Please any suggestions would help!! I am really stuck!!