Is it possible to select a printer for a print job without forcing the user to select from a dialog box?

Sandip Chitale

Not using the JDK1.1 style printing i.e. using java.awt.Toolkit.getPrintJob(). This does show the dialog.

Using the JDK1.3 style printing i.e. using java.awt.print.PrinterJob and java.awt.JobAttributes.setPrinter(string) it is possible to do what you want.

Please see-