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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      generic

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: