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

PrintDialog doesn't use default media size when specifying a MediaTray

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 9
    • 6u24
    • client-libs
    • 2d
    • x86
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
      Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7600]

      A DESCRIPTION OF THE PROBLEM :
      If you provide a MediaTray attribute to the print dialog from ServiceUI, the dialog doesn't use the media size from the locale. It always uses 'Letter'.

      Bonus: If I use the sources from java2s.com to clone the dialog, the combobox displays "DIN A4" as it should.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Use ServiceUI.printDialog to get the dialog in an European environment. Provide a MediaTray attribute.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The combobox on the second tab should read A4 (ISO/DI &JIS)
      ACTUAL -
      The combobox displays 'Letter'

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Clone the ServiceDialog class

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: