public void mouseClicked(int x, int y, MouseHelper helper) {
        if (helper == MouseHelper.LEFT_CLICK) {
            if ((x >= theComponent.getX()) && ((x <= (theComponent.getX() + buttonWidth)))) {
                if ((y >= theComponent.getY()) && (y <= (theComponent.getY() + buttonHeight))) {
                    if ((y > theComponent.getY()) && (y < (theComponent.getY() + buttonHeight))) {
                        clicked = true;
                    } else {
                        clicked = true;
                    }
                }
            }
        }
    }