View Full Version : background color

07-19-2002, 11:51 AM

Is it possible to alternate the background color based on the group not on the individual item? Thanks.

07-20-2002, 02:48 PM

the only solution is to write a function to do this task for you. Simply set the color by using Element.setColor(). To form the background, it is the easiest way to create a rectangle element with the same size as your band. (x = 0; y = 0; with = 100%, height=100%).

In the function you can alter the background based of this element by using
JFreeReport.getItems().getElement ("background").setColor (...) assuming that the background rectangle is named "background".

Have more fun,
said Thomas