Handler for File → Page Setup.
()
| 2717 | * Handler for File → Page Setup. |
| 2718 | */ |
| 2719 | public void handlePageSetup() { |
| 2720 | //printerJob = null; |
| 2721 | if (printerJob == null) { |
| 2722 | printerJob = PrinterJob.getPrinterJob(); |
| 2723 | } |
| 2724 | if (pageFormat == null) { |
| 2725 | pageFormat = printerJob.defaultPage(); |
| 2726 | } |
| 2727 | pageFormat = printerJob.pageDialog(pageFormat); |
| 2728 | //System.out.println("page format is " + pageFormat); |
| 2729 | } |
| 2730 | |
| 2731 | |
| 2732 | /** |