Nate West

Greenhorn
+ Follow
since Sep 14, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nate West

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?
11 years ago