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

Java2D printing: Occasional problems setting paper size.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P5 P5
    • None
    • 1.3.0
    • client-libs
    • 2d
    • x86
    • windows_95

      I changed the paper size from default to other in print setup dialog.
      However, the printing job sometimes prints on the default size paper.

      1. Configration
        1.1 OS : Windows95(OSR2)
        1.2 JDK Ver.: kestrel build-P
        1.3 Printer
           (1) Canon Laser shot LBP A309 GII (Page printer)
           (2) Fuji Xerox Laser Press 4150 PSII(Postscript printer)
           (3) Canon LBP-404PS Lite(Postscript Printer)
           (4) Canon Laser shot LBP 450 (Page printer)

      2. Reproduction

       Please use the attached file, SetPrintableSample.jar.
       
       1.1 Process
         
         1) Set your printer "Default printer"
         
         2) Execute "java -jar SetPrintableSample.jar"
            -> Canvas will appear, and display the default value of pageformat
               (May be A4 size data)
               
         3) In menu, Select "File" - "PageDialog"
            -> Print Setup Dialog will appear
            
         4) Change the paper size
            -> Initial value may be set "A4", select "Letter" or other.
               ( Keep "Paper source" "Auto select")
            
         5) Click "OK"
            -> The values on the canvas will change
           
         6) In menu, Select "File" - "PrintDialog"
            -> Print Dialog will appear
            
         7) Click "OK"
            -> We hope the data printed on the letter size

      3. Source code
        Please see the attached files SetPrintableSample.java and
        SetPrintableSampleCanvas.java

            prr Philip Race
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: