Hey, using a JPanel appears to have gotten rid of Null Pointer Exception AND the blinking. Thanks!
>:D<
Marking thread as "Solved".
Type: Posts; User: javapenguin
Hey, using a JPanel appears to have gotten rid of Null Pointer Exception AND the blinking. Thanks!
>:D<
Marking thread as "Solved".
That's exactly what just crossed my mind when I noticed that I had a paintComponent() method called for another program that I wrote.
However, no idea what's causing the NullPointerException.
...
Well, maybe if it's my println to check to see if it's valid. However, I have called an ActionListener in a Timer and had started the Timer before I called the method.
What's even more bizarre is...
It appears that the variable tadString is null.
It shouldn't be, as this time, though not at first but before I submitted the problem to here, I started the Timer. Also, the printlines are...
One, how do I get the repaint to stop it from flashing like it is?
Second, how do I make the NullPointerException:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: String...