title: passing a "where condition" to jasperreports exporting pdf
body: <p>A simple SQL table, with two attributes and three rows:</p>
  <blockquote>
  <p>reference     | name:</p>
  <p>0 |    first</p>
  <p>1 |            second</p>
  <p>2  |           third</p>
  </blockquote>
  <p>I have a Java application, with Swing, showing this through a JList (each row concatenates the two strings, reference and name).</p>
  <p>I push a button, I export the entire database successfully, using my &quot;from_ireport.jasper&quot;, compiled from iReport. I can compile from code too.</p>
  <p>I want to select one or more elements, push the button and get a pdf with just the selected elements. Where and how do I specify the &quot;where condition&quot; to jasper?</p>
  <p>I can't find a easy example to look at.
  Thanks.</p>