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

Collate option is selected by default in the common Print Dialg on Win XP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • 2d
    • x86
    • windows_xp

      The common print dialog popped up by calling PrinterJob.printDialog(attrSet) shows the collate option as selected by default on Win XP (Though Collate option is disabled when no of copies is 1). When the no of copies is set to more than 1, the collate checkbox gets enabled and still remains selected.

      This is not the case with the common dialog popped up using the AWT APIs. This behavior is noticed even on the common dialog that is popped up by calling ServiceUI.printDialog(). This is reproducible only on Win XP anf not on other platforms. This is reproducible right from JDK1.4.0 to the current PIT build.

      PIT build used:
      java version "2d.pit-jcg-win-01-27-May-03.tiger"
      Java(TM) 2 Runtime Environment, Standard Edition (build 2d.pit-jcg-win-01-27-May-03.tiger)
      Java HotSpot(TM) Client VM (build 1.5.0-beta-b07, mixed mode)

      How to reproduce:
      I have a attached a sample code. Run the sample code on any JDK1.4+ build.
      You will get a cross-platform print dialog. Check the collate option. If it is shown as selected then the bug is reproduced. (Since the copies count is more than 1, collate option will be enabled).

      I tested this with Xerox as well as HP drivers and it is reproducible on both.
      ------------------------------------------------------------------------------

      Though the collate option remains selected on the dialog, it does get added to the given attribute set when popping the dialog through ServiceUI.printDialog(). If the user really wants to use COLLATE, he has to deselect the already selected checkbox and select it again to get it added to the attribute set. This is very misleading since the user would assume that it is already selected and he does not have to do anything apart from increasing the copies count. Hence I am raising the priority of this bug to P3.

      ###@###.### 2004-07-30

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: