Glad you got it working.
Type: Posts; User: Norm
Glad you got it working.
That is where the initial value is set for the diameter of the ball. It is only used once when the ball is created.
Look at where the ball is drawn. What variable is used to for the size of...
What variable holds the size of the ball when the program is executing?ballDiameter holds its initial value but is not used later.
Where does the code try to change the size of the ball?
What variable holds the size that you want to change?
Where does the code attempt to change the contents of that variable?
What variable holds the size? Where does the code attempt to change it?
The code does not have a main() method. There is no way to execute it.
The posted code does not compile. There are several errors in it.
You need to post all the classes the code uses.
You should NOT use a name for a class that is the name of a standard java class:...
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve formatting.
Please paste the code in the forum wrapping it in code tags.