JDK-6306894 : javax.print Media* classes don't include "US Std Fanfold" (14.875" x 11")
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-08-05
  • Updated: 2011-02-16
  • Resolved: 2005-10-03
Related Reports
Duplicate :  
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 :
4NT  6.01.233U   Windows XP 5.1

A DESCRIPTION OF THE PROBLEM :
It is not possible to select a media size of US Standard Fanfold (14.875" x 11") in the printer setup dialogue because it is not defined in the javax.print.attribute.standard.Media* classes.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the sample below; pick a printer that should support US Std Fanfold paper.  All other standard paper sizes are available except for that one.


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------

import java.awt.print.*;
import javax.print.attribute.*;

public class Fanfold
{
    public static void main(String args[]) throws Exception
    {
        PrinterJob printerJob = PrinterJob.getPrinterJob();
        PrintRequestAttributeSet attrSet = new HashPrintRequestAttributeSet();
        printerJob.printDialog(attrSet);
    }
}
---------- END SOURCE ----------

Comments
EVALUATION Adding new MediaSize(s) should be handled under 1 RFE.
03-10-2005