Java examples for 2D Graphics:Print
Setting the Number of Copies of a Print Job
// Set up the attribute set PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(new Copies(2)); // Print it job.print(doc, aset);