new Copies(int value) : Copies « javax.print.attribute.standard « Java by API






new Copies(int value)

  
import javax.print.attribute.HashPrintRequestAttributeSet;
import javax.print.attribute.PrintRequestAttributeSet;
import javax.print.attribute.standard.Copies;

public class Main {
  public static void main(String[] argv) throws Exception {

    // Set up the attribute set
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(new Copies(2));

  }
}

   
    
  








Related examples in the same category