CSE 341 - Spring 2002 - Assignment 4 - Java Warmup Part 2

Due April 29, at the beginning of class. Please submit all of your class definitions in one code file, including both the DrawCircles and FancyDrawCircles class. (Or you can submit multiple files if that is more convenient.)

  1. Extend the DrawCircles class you wrote for Assignment 3 to define a new class FancyDrawCircles that also provides sliders to control the minimum and maximum sizes for the circles, and the number of circles. You should inherit the other functionality from DrawCircles -- don't duplicate it in FancyDrawCircles.

    Ideally, you should be able to extend DrawCircles without modifying it at all. However, if you need to modify it, that's OK -- make sure that after you modify DrawCircles to make it more suitable for extension that it still does what is needed for Assignment 3. In a comment at the beginning of FancyDrawCircles, reflect on your experience in extending DrawCircles. Did you need to change anything in DrawCircles? Why?

    Hint: see Budd, Chapter 6, for some sample definitions of sliders to control a graphical program.