title: Adding table border in jasperreports
body: <p>How do you create a report with table like data?</p>
  
  <p>I was able to create a report with details below.  It arranges the data in a table-like structure.</p>
  
  <pre><code>&lt;jasperReport&gt;  
  .
  .
      &lt;pageHeader&gt;
          &lt;band height="30"&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="0" y="0" width="69" height="24" /&gt;
                  &lt;textElement verticalAlignment="Bottom" /&gt;
                  &lt;text&gt;&lt;![CDATA[ID: ]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="140" y="0" width="69" height="24" /&gt;
                  &lt;textElement verticalAlignment="Bottom" /&gt;
                  &lt;text&gt;&lt;![CDATA[NAME: ]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x="280" y="0" width="69" height="24" /&gt;
                  &lt;textElement verticalAlignment="Bottom" /&gt;
                  &lt;text&gt;&lt;![CDATA[AGE: ]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/pageHeader&gt;
      &lt;detail&gt;
          &lt;band height="30"&gt;
              &lt;textField&gt;
                  &lt;reportElement x="0" y="0" width="69" height="24" /&gt;
                  &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{id}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="140" y="0" width="69" height="24" /&gt;
                  &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{name}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x="280" y="0" width="69" height="24" /&gt;
                  &lt;textFieldExpression class="java.lang.String"&gt;&lt;![CDATA[$F{age}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>But the rows and columns has no border?  How do I achieve this in Jasperreport 4.5?</p>
  
  <p>Thanks</p>