public void paintComponent(Graphics graphics)
    {
        Graphics2D graphics2D = (Graphics2D) graphics;
        graphics2D.setPaint(new GradientPaint(0, 0, Color.white, 0, getHeight(), new Color(212, 212, 212)));
        graphics2D.fillRect(5, 5, getWidth() - 10, getHeight() - 10);//todo remove this hardcode

        super.paintComponent(graphics);
    }