JFreeChart Help: Creating a Gradient Background for a CategoryPlot

I need a Gradient Background for my CategoryPlot Object and am having problems figuring out the best approach.Does anyone have any suggestions on the best way to approach this problem?Any help would be appreciated.
[235 byte] By [MattBallarda] at [2007-11-27 6:37:54]
# 1
anyone ever build a gradient using java.awt.color?
MattBallarda at 2007-7-12 18:06:23 > top of Java-index,Java Essentials,Java Programming...
# 2

BarRenderer barrenderer = (BarRenderer)categoryplot.getRenderer();

barrenderer.setDrawBarOutline(false);

GradientPaint gradientpaint = new GradientPaint(0.0F, 0.0F, Color.blue, 0.0F, 0.0F, new Color(0, 0, 64));

GradientPaint gradientpaint1 = new GradientPaint(0.0F, 0.0F, Color.green, 0.0F, 0.0F, new Color(0, 64, 0));

barrenderer.setSeriesPaint(0, gradientpaint);

barrenderer.setSeriesPaint(1, gradientpaint1);

sabre150a at 2007-7-12 18:06:23 > top of Java-index,Java Essentials,Java Programming...
# 3
That will set the Bar's Gradient, not the CategoryPlot object.
MattBallarda at 2007-7-12 18:06:23 > top of Java-index,Java Essentials,Java Programming...
# 4

> That will set the Bar's Gradient, not the

> CategoryPlot object.

So you need something likeCategoryPlot categoryPlot = jfreechart.getCategoryPlot();

GradientPaint gradientPaint = new GradientPaint(0.0F, 0.0F, Color.BLUE, 10.0F, 10.0F, Color.RED, true);

categoryPlot.setBackgroundPaint(gradientPaint);

sabre150a at 2007-7-12 18:06:23 > top of Java-index,Java Essentials,Java Programming...