JasperReports 1.1 introduced a new report element, the <frame>
element, allowing 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 the 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" ?> <jasperReportxmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://jasperreports.sourceforge .net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="FrameDemo"> <field name="lots_of_data" class="java.lang.String" /> <...