public void setButton(Rectangle button)
    {
        if (this.button == null || (!this.button.equals(button) && button != null))
        {
            this.button = button;
            pressed = false;
        }
    }