Handler for File → Page Setup.
()
| 2191 | * Handler for File → Page Setup. |
| 2192 | */ |
| 2193 | public void handlePageSetup() { |
| 2194 | //printerJob = null; |
| 2195 | if (printerJob == null) { |
| 2196 | printerJob = PrinterJob.getPrinterJob(); |
| 2197 | } |
| 2198 | if (pageFormat == null) { |
| 2199 | pageFormat = printerJob.defaultPage(); |
| 2200 | } |
| 2201 | pageFormat = printerJob.pageDialog(pageFormat); |
| 2202 | //System.out.println("page format is " + pageFormat); |
| 2203 | } |
| 2204 | |
| 2205 | |
| 2206 | /** |