Closed GoogleCodeExporter closed 8 years ago
According to "getPrinterJob()" documentation, the default printer is the
default behavior. If this is true, this would be a fairly quick code fix.
http://docs.oracle.com/javase/1.5.0/docs/api/java/awt/print/PrinterJob.html#getP
rinterJob()
-Tres
Original comment by tres.fin...@gmail.com
on 30 May 2012 at 2:03
Also, I come across this code
PrintService service =
PrintServiceLookup.lookupDefaultPrintService();
if (service != null) {
String printServiceName = service.getName();
System.out.println("Print Service Name = " + printServiceName);
That also returns the default
Original comment by a2ro...@gmail.com
on 30 May 2012 at 2:12
Good find. Applied provided code to version 1.4.1.
Original comment by tres.fin...@gmail.com
on 7 Jun 2012 at 1:53
Download version 1.4.1 or higher and call findPrinter() with no parameters. If
a default printer is found, it will return it.
Accepting my own test results and closing as fixed since it's such a small bug.
:)
-Tres
Original comment by tres.fin...@gmail.com
on 7 Jun 2012 at 2:13
Original issue reported on code.google.com by
a2ro...@gmail.com
on 30 May 2012 at 1:49