Hi

Ive got the following code in java and would like to modify it so that the user can define how many balls are displayed in the Balls window.

Anyone know how i do this ??

thanks


import BallsLib.*;
public class OneBall
{
public static void main (String args[])
{
int maxNumBalls = 1 ;
BallsFrame f;
f = new BallsFrame (maxNumBalls) ;
f.addBalls();
}
}