Looked everywhere and still can't find a solution to this problem while using NetBeans.
When I use the following code to load a file by path:
Image owl = new ImageIcon(this.getClass().getResource("/images/owl.gif")).getImage();
I get a NullPointerException. I read somewhere where it suggested creating a new folder and making it a source file for the project, but that didn't help. I've tried multiple suggestions that I found on this site and others, but I'm not getting any results.
I'm starting to wonder if there is something wrong with the way that I am putting the path in, but I'm doing it exactly the way that it shows everywhere else. I've tried every combination of every example that I could find to solve this problem for the last couple of days, but nothing is working.