JPrettyPanel panel = (JPrettyPanel)comp;
Dimension dim = panel.getPreferredSize();
panel.setMaximumSize(new Dimension(Integer.MAX_VALUE, dim.height));
GradientPainter painter = new GradientPainter(Color.WHITE, new Color(200,200,200));
painter.setDirection(GradientPainter.LEFT_TO_RIGHT);
panel.setComponentPainter(painter);
panel.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
//panel.setBorder(new RoundedLineBorder(5));
}