Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1209

AWTRenderer should not call System.exit().

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.92
    • None
    • renderer/awt
    • None
    • Operating System: All
      Platform: All
    • 39983

    Description

      I'm attempting to reuse the AWTRenderer from within a Swing application. It
      works great, until the preview window is closed, at which point it forces my
      application closed.

      AWTRenderer.createPreviewDialog() adds a WindowListener to the PreviewDialog
      (JFrame) to call System.exit(0) on windowsClosed. As the PreviewDialog class
      already calls setDefaultCloseOperation(DISPOSE_ON_CLOSE), I don't see why this
      System.exit(0) call is needed.

      Thanks!

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            ziesemer Mark A. Ziesemer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: