I use the following line of code to have Adobe Reader print my generated PDF:
desktop.print(new File("temp.pdf"));
It always uses the standard printer.
Is there a way to display the “choose printer” dialog instead?
Advertisement
Answer
http://download.oracle.com/javase/tutorial/2d/printing/dialog.html