US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: background color

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default background color

    Hi,

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

  2. #2
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: background color

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •