I have 5 image files that I wish to incorporate or embedd inside a program. I am using netbeans and I have created a directory in the files table just under the database directory (I have embedded databases) with the 5 files inside them. For good measure, I have also placed copies of the directory (and files) in the dist and src directories all named 'Images'.
I am trying to access them and use them as an image icon as a default image at start-up. User has the option later to change them.
this is what I was trying....
This is producing a runtime error:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
Could someone offer suggestions.....