public void mouseMoved(int x, int y) {
        if ((x >= theComponent.getX()) && ((x <= (theComponent.getX() + buttonWidth)))) {
            if ((y >= theComponent.getY()) && (y <= (theComponent.getY() + buttonHeight))) {
                if ((y > theComponent.getY()) && (y < (theComponent.getY() + buttonHeight))) {
                    isMouseOver = true;
                } else {
                    isMouseOver = true;
                }
            } else {
                isMouseOver = false;
            }
        } else {
            isMouseOver = false;
        }
    }