Null Pointer Exception Issue
Alright, so in my code, I have a few images I need to display under certain circumstances. I just want a simple image display, so I'm using JLabels to display the images. So, when I add the JLabel of the image to my Panel from the constructor of the class, everything works fine. But when I move that same statement to either a method of the class or a subclass (like TimerListener) a NullPointerException gets thrown. Not sure what the issue is, because usually the issue seems to be with a missing file, and that can't be the case here.
I would post the code, but It's rather long and cumbersome.
Any ideas on how to correct this? Thanks.