Class JasperDesignViewer

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

    public class JasperDesignViewer
    extends JFrame
    This class can be used at design time to preview the report templates. It was included in the main library as a development tool in order to make up for the missing visual designer.

    The class is a simple Swing-based Java application that can load and display a report template either in its raw JRXML form or in its compiled form. Even though it is not a complex GUI application and lacks advanced functionality like dragging and dropping visual report elements, it is a very helpful tool. All the supplied JasperReports samples were initially created using this design viewer.

    All the supplied samples already have Ant tasks in their build.xml files that will launch this design viewer to display the report templates. There are two Ant tasks for each sample report: viewDesign and viewDesignXML. The first one loads the compiled report template that is normally found in the *.jasper file. The second one loads the JRXML report template, which is more useful since you can edit the JRXML file and click the Reload button to immediately see the modification on the screen.

    Author:
    Teodor Danciu (teodord@users.sourceforge.net)
    See Also:
    Serialized Form