JasperReports 1.1 introduced a new report element, the<frame>
element. The<frame>
element allows us to group elements together and give them a common look. For example, we can set the background color of the frame and it will be inherited across all elements contained within the frame. Frames also provide a straightforward way of placing a border around multiple report elements. The following JRXML template is a new version of the example in the previous section. It has been modified to illustrate the use of frames.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="FrameDemo">
<field name="lots_of_data" class="java.lang.String"/>
<detail>
<band height="60">
<frame>
<reportElement x...