This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Under Windows XP and JDK 1.4, I use PrinterJob.getPrinterJob(); for getting the default printer.
When I changed the default printer from first printer to second printer in Windows's Setting, the PrinterJob.getPrinterJob(); still return the first printer as default printer. And I don't want to show the Print Dialog.
I guess that this problem may be caused from the JVM will detect default printer only once when JVM started.
I obtain the same result if I use PrintServiceLookup.lookupDefaultPrintService(); It doesn�t work.