I can print using java print api from an application but service lookup fails in an applet?
As a matter of fact
PrintService printService = PrintServiceLookup.lookupDefaultPrintService();
If it is possible can anybody give me a sample of working code?
Originally posted by tommy k. lee:
"An applet would like to print. Is this OK?" ...
Even if, I get this message for printing from unsigned applets that will be fine. But I could never get even this message.
A PrintServiceLookup implementor is recommended to check for the SecurityManager.checkPrintJobAccess() to deny access to untrusted code. Following this recommended policy means that untrusted code may not be able to locate any print services. Downloaded applets are the most common example of untrusted code.