Problem 3
In general, how does a user begin a drag-and-drop operation? Give an example.
Problem 8
Create class RandomMyshapecontrollex that extends class My Shapecontroller and adds random Myshape subclasses with random sizes, colors and other properties to the DxawingMode1. In method startshape, class RandomMyshapeController should prompt the user for the number of random shapes to add to the drawing. Create a new My ShapeControllexFactory subclass (Fig. 5.18) named RandomMyshapeContro11erFactory that constructs a RandomMyshapeControllex when the string "Random" is passed to method newMyshapecontrollex. [Hint: Be sure to override method getSupportedshapes of class MyShape Contro11er \(F\) actory to return a String array that includes the String "Random".]