complete RectangleComponent.java

this class is used for paint component.