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

[Printing, Mac] Printing hangs if printing more than specified number of pages

    XMLWordPrintable

Details

    Description

      This code hangs forever on the last line.

      The result should probably be an exception since one is trying to print after the last page.

      PrinterJob pj = PrinterJob.createPrinterJob();
      pj.getJobSettings().setPageRanges(new PageRange(1, 1));
      pj.printPage(new Label("Page 1"));
      pj.printPage(new Label("Page 2 - one too much"));

      Labelling as critical since a small programming error might hang the whole app without any way of knowing the reason.

      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              mgrev Mikael Grev
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: