PDA

View Full Version : background color



Anonymous
07-19-2002, 11:51 AM
Hi,

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

Anonymous
07-20-2002, 02:48 PM
Hi,

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