Thanks so much again for helping with this.
You were right about the problem. it was the uninitialized objects in the ball class.
I changed the line "private Player1 p1" to "private Player1 p1 =...
Type: Posts; User: jimbagas
Thanks so much again for helping with this.
You were right about the problem. it was the uninitialized objects in the ball class.
I changed the line "private Player1 p1" to "private Player1 p1 =...
Thanks a lot for replying to this. Its helped me with learning to analyze code.
I realized i could get rid of the setVisible() call as it's not needed with applets.
Ive looked over the code...
This is the console output when I run the program.
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at main.MainClass.paint(MainClass.java:105)
at...
I dont know if I'm restricted but awt is what i've learned to use. does it make much of a difference?
I'm a beginner at java and am trying to code a basic pong game java applet.
The code has no errors in it but when i run it the .png's do not come up in the window until its moved off screen.
when...