public void actionPerformed(ActionEvent e) { PrinterJob printJob = PrinterJob.getPrinterJob(); /* définition du livre */ PageFormat landscape = printJob.defaultPage(); PageFormat portrait = printJob.defaultPage(); landscape.setOrientation(PageFormat.LANDSCAPE); portrait.setOrientation(PAgeFormat.PORTRAIT); Book bk = new Book(); bk.append((Printable)b, landscape); bk.append((Printable)b2, portrait, 2); printJob.setPageable(bk); try { printJob.print(); } catch(Exception ex) { } }