title: Not able to pass JTable to Jasper report
body: <pre><code>private void txtPrintActionPerformed(java.awt.event.ActionEvent evt) {                                         
      // TODO add your handling code here:
      try {
          JasperCompileManager.compileReportToFile("../report/report2.jrxml");
      JasperPrint jasperPrint=JasperFillManager.fillReport("../report/report2.jasper",new HashMap(),new JRTableModelDataSource(tblStock.getModel()));
      JasperViewer jasperviewer=new JasperViewer(jasperPrint);
      jasperviewer.setVisible(true);
  }
  catch(Exception e) {
      System.out.println("Exception in generating report,generateReport() of JasperReportGenerator:"+e);
  }
  }    
  </code></pre>
  
  <p>Jasper Report which is generated with this code, does not show the contents of JTable (tblStock)..it just shows two bold empty heading lines on the report..anybody help..</p>