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

selected printertray is ignored under linux

    XMLWordPrintable

Details

    • 2d
    • b135
    • x86
    • linux

    Backports

      Description

        FULL PRODUCT VERSION :
        java version "1.5.0_04"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
        Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Linux XXXXX 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux


        EXTRA RELEVANT SYSTEM CONFIGURATION :
        SuSE 9.3 with CUPS

        A DESCRIPTION OF THE PROBLEM :
        If you select a printer tray to print to, it is ignored under Linux. It seems to always print to the standard tray.

        This is working well under win32.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Select a tray e.g. "Manual Feeder" by picking the right object from printService.getSupportedAttributeValues(Media.class, null, null).
        Now add it to a PrintRequestAttributeSet attributes.

        Then do something like:

        HashDocAttributeSet docAttrs = new HashDocAttributeSet();
        DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
        Doc simpleDoc=new SimpleDoc((Object)pageable,flavor,docAttrs);

        DocPrintJob docPrintJob=printService.createPrintJob();
        docPrintJob.print(simpleDoc, attributes);


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Print to the selected tray.
        ACTUAL -
        Java prints to the standard tray.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        none found

        Attachments

          Issue Links

            Activity

              People

                psadhukhan Prasanta Sadhukhan
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: