Compiling and viewing your report in a Java Swing application

This recipe teaches you how to embed JasperReports functionality in a Java swing application.

Getting ready

Refer to the installPostgreSQL.txt file included in the source code download for this chapter to install and run PostgreSQL, which should be up and running before you proceed.

The source code for this chapter also includes a file named copySampleDataIntoPGS.txt, which helps you create a database named jasperdb9 and copy sample data for this recipe into the database.

You will need Java Development Kit (JDK) version 1.6.X to compile and run the Java application of this recipe. You will find all the necessary downloads and instructions on Sun's official website . After installing JDK, ...

Get JasperReports 3.6 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.