|
Okay, I have put all three files of my source code into a zip 'pong.zip'
There should be three files:
PongApp.java (to run the program as an application, not applet)
PongBall.java (the PongBall class that describes the properties and behavior of the ball)
PongPanel.java (describes the paintComponent() and moveBall() methods, (and some others that deal with mouse listeners and timers) and where the instantiation of the PongBall class is done.
I compiled these using Eclipse, in the 'default package'.
I appreciate your time in compiling this to help. Let me know if there is anything else I can do to make this clearer.
|