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

Printing cannot be canceled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: javafx
    • Environment:

      MacOS 10.10.3, Retina MacBook Pro

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: