Jump to content
Changes to the Jaspersoft community edition download ×
  • Swing application exits when closing the JasperViewer frame


    djohnson53
    • Version: v5.1, v5.0, v4.8, v4.7, v4.6, v4.5 Product: JasperReports® Library

    This happens if you directly use the JasperViewer class in your Swing application.

    The viewer application implemented in this class should be considered more like a demo application that shows how the JRViewer component can be used in Swing applications to display reports.

    Your application unexpectedly terminates when you close the report viewer frame because the JasperViewer class makes a call to the System.exit(0).

    To get around this, use the constructor that allows you to set the isExitOnClose to "false". But you are encouraged to create your own viewer that uses the more basic visual component implemented by the JRViewer class. Feel free to copy what code portion you might want to keep from the supplied JasperViewer class.


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...