Skip to content
Advertisement

Display printer dialog

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

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement