@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2 = (Graphics2D) g;
		GradientPaint gradPaint = new GradientPaint(0, 0, getLowerColor(), 0, getHeight(), getUpperColor());
		g2.setPaint(gradPaint);
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		if (roundedCorners)
			g2.fillRoundRect(0, 0, getWidth(), getHeight(), 5, 5);
		else g2.fillRect(0, 0, getWidth(), getHeight());
	}