Thread
:
NullPointerException even when class is instantiated as expected
View Single Post
#
5
(
permalink
)
07-10-2009, 06:20 AM
Fubarable
Moderator
Join Date: Jun 2008
Posts: 6,388
Rep Power:
8
Yep, you're trying to use PongBalls before you've initialized them. You're also trying to create PongBall objects and do program logic in the paintComponent method, and that's a bad idea.
Fubarable
View Public Profile
Send a private message to Fubarable
Find all posts by Fubarable