PrinterJob pjob = PrinterJob.getPrinterJob();

// Get and change default page format settings if necessary.
PageFormat pf = pjob.defaultPage();

// Show page format dialog with page format settings.
pf = pjob.pageDialog(pf);

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.