Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8088313

Printing cannot be canceled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 8u40
    • javafx
    • MacOS 10.10.3, Retina MacBook Pro

      I try to print a WebView with the following code:

          private void handlePrintButtonAction(ActionEvent event) {
              PrinterJob job = PrinterJob.createPrinterJob();
              if (job != null) {
                  if (job.showPageSetupDialog(null)) {
                      webView.getEngine().print(job);
                      job.endJob();
                  }
              }
      }

      When I cancel the page setup dialog the page is still printed which, according to the documentation, should not be the case.

            prr Philip Race
            dpausjfx Dr. Michael Paus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: