private void jbPrint_actionPerformed(ActionEvent actionEvent){ printer.getPrintJob().setPrintable(printer, printer.getPageFormat()); printer.getJpPreview().setXList(this); // unser eigenes Zeugs printer.getJlPageOrientation().setText( // ebenso printer.getPageFormat().getOrientation() == PageFormat.LANDSCAPE ? "Querformat" : "Hochformat"); if (printer.getPrintJob().printDialog()) { try { printer.getPrintJob().print(); // Drucken } catch (PrinterException e) { } // TODO Printer catch PrinterException } return;}