Circle
that represents a circle to be drawn.
Store the following information in instance variables:
Provide the following methods:
IMPORTANT: Your random number generator must be declared at the class level (not inside the constructor), and must be declared static. So its declaration and initialization should appear with the declarations of radius, color, x, and y, and should look like this:
private static Random generator = new Random();
repaint()
to get this to work. Recall from our examples in class that your Listener class should be an inner class of your panel class. (You might want to review the LeftRight example on pp. 186-7.)