List of usage examples for java.awt.print PrinterJob pageDialog
public PageFormat pageDialog(PrintRequestAttributeSet attributes) throws HeadlessException
From source file:processing.app.Editor.java
/** * Handler for File → Page Setup. *//* w ww .j ava2 s. c o m*/ public void handlePageSetup() { PrinterJob printerJob = PrinterJob.getPrinterJob(); if (pageFormat == null) { pageFormat = printerJob.defaultPage(); } pageFormat = printerJob.pageDialog(pageFormat); }