public void paintComponent(Graphics graphics)
    {
        if (selected)
        {
            Graphics2D graphics2D = (Graphics2D) graphics;

            graphics2D.setPaint(Color.white);
            graphics2D.fillRect(0, 0, getWidth(), getHeight());

            GradientPaint gradientPaint;

            if (answerSide == AnswerSide.LEFT)
                gradientPaint = new GradientPaint(0, 0, Color.white, getWidth(), 0, new Color(68, 2, 4));
            else
                gradientPaint = new GradientPaint(0, 0, new Color(68, 2, 4), getWidth(), 0, Color.white);

            graphics2D.setPaint(gradientPaint);
            graphics2D.fillRect(5, 5, getWidth() - 10, getHeight() - 10);
        }
        else
            super.paintComponent(graphics);
    }