View Single Post
  #9 (permalink)  
Old 07-11-2009, 06:03 AM
DCC1 DCC1 is offline
Member
 
Join Date: Jul 2009
Posts: 10
Rep Power: 0
DCC1 is on a distinguished road
Default
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.
Attached Files:
File Type: zip pong.zip (3.2 KB, 2 views)
Reply With Quote