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

Contents of PrintDialog not shown properly when setPrinter() is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • 2d
    • generic
    • generic

      For Win32 - NATIVE - PrintDialog, setting the printer name using setPrinter() :
      (a) Disables the "Selection" option
      (b) Makes "Collate" option invisible
      (c) setDestination is not reflected, even though JobAttributes.DestinationType.FILE is specified

      Attached here with is the screen shot of the resultant PrintDialog.

      //Setting printer name in JobAttributes
      jobAttributes.setPrinter("Test Printer");

      Compile and run SetPrinterTest
      The PrintDialog which is popped up doesn't have the components displayed/enabled as mentioned above.

      java version "1.5.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b04)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b04, mixed mode)

      Additional description
      -----------------------
      "Test Printer" is not a valid printer. When I specify a valid printer, the components in the dialog are displayed and the values are set as expected.
      In previous builds, setting an invlalid printer won't affect the components, only thing is that the printer won't be selected in the combobox by default.

      -------------------------------------------------------------------------------

      This bug could not be reproduced in PIT build :

      java version "Build:15-Apr-03@20:07.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build Build:15-Apr-03@20:07.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b04, mixed mode)

      It works fine in PIT build (April 01 & 15)

            jgodinez Jennifer Godinez (Inactive)
            rmenonsunw Rakesh Menon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: