-
The RectangleComponent model stores a Rectangle object.
-
There is a mutator to modify the Rectangle.
-
The RectangleComponent also provides the aspects of the view part. That is, the RectangleComponent is not completely separated from the view.
The RectangleComponent inherits the ability to display the rectangle from the JComponent class.
However, an application must still create the view by adding this RectangleComponent to a frame and making the frame visible.