質問: (Graphics2D)g; g2.translate(pf.getImageableX(), pf.getImageableY()); //コンソール System.out.println("A4 Size:"+pf.getImageableWidth()+","+pf.getImageableHei ght()); //印刷用(A4サイズ)の表示 ssl.paintComponent(g2); return Printable.PAGE_EXISTS; } }
回答: このあたり、読んでみよう。 https://docs.oracle.com/javase/jp/1.5.0/guide/2d/spec/j2d- print.html