Hello, everyone. So, here is the basic layout of my project in Eclipse:
Project:
Src:
package1:
BoxButton.java
package2:
Test.java
TestResources (This is a source folder):
resourcesfortest.images:
t.png
Resources (Also a source folder):
res.images:
gleam.png
So, with the following line of code from inside the BoxButton class (BoxButton extends javax.swing.JPanel), I'm getting a NullPointerException. What's wrong?
"gleam" is already declared as a java.awt.Image.
What am I doing wrong?