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

ServiceUI.printDialog does not support properties dialog

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b09

      Description

      This issue is reproducible on Windows.

      Reproducer:

      import javax.print.*;
      import javax.print.attribute.HashPrintRequestAttributeSet;

      public class Test {
          public static void main(String[] args) {
              PrintService service = PrintServiceLookup.lookupDefaultPrintService();
              PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
              HashPrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
              ServiceUI.printDialog(null, 200, 200, services, service, DocFlavor.SERVICE_FORMATTED.PAGEABLE, attrs);
          }
      }


      Running this test shows a dialog that includes properties button for showing properties dialog. This button is disabled on Mac. It's enabled on Windows but clicking it doesn't show any dialog. According to JDK-4673406, the properties dialog isn't supported for direct uses with javax.print.ServiceUI.printDialog. It might make sense to disable the properties button in this case.

        Attachments

          Activity

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              dcherepanov Dmitry Cherepanov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: