public void widgetChanged(JComponent widget){
        super.widgetChanged(widget);
        if (widget == sizeControlGroup){
             controller.setSize(sizeControlGroup.getCurrentValue());
        }
        if(widget == xControlGroup){
            controller.setXposition(xControlGroup.getCurrentValue());
        }
        if (widget == yControlGroup){
            controller.setYposition(yControlGroup.getCurrentValue());
        }
        drawPanel.repaint();

    }