File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Warning Message - An Applet Would Like To Print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Warning Message - An Applet Would Like To Print" Watch "Warning Message - An Applet Would Like To Print" New topic

Warning Message - An Applet Would Like To Print

Andrew K.

Joined: Oct 24, 2002
Posts: 2
I support a web application at work. In this application, I have an applet that prints a report to a local printer. Some people are getting a warning message from Java: "An Applet Would Like To Print. Is This OK?". However, some people are not getting this message.
Do you know how can I turn the message off? I looked at the "Internet Options" in IE 5.5 and I couldn't find an option to turn this off. Any suggestions?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to Applets.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

If you're even getting that message then I suspect that your applet isn't in Java, it's in J++. I'm pretty sure the Java sandbox doesn't permit unsigned applets to print.
You may have a can of worms there, since neither Sun nor Microsoft is going to give you good support on J++, expecially if this applet's using a lot of classes from the package to tap into Windows GDI instead of using AWT. You may either have to rewrite the applet or use Microsoft's .NET conversion tool.

An IDE is no substitute for an Intelligent Developer.
Elouise Kivineva
Ranch Hand

Joined: Feb 07, 2002
Posts: 154
I've written an JApplet that prints and I get the same message when I run it with either Navigator or Explorer under W98/2000. I don't know how to turn it off but I certainly didn't write it in J++.
It's not signed either.
I agree. Here's the link:
subject: Warning Message - An Applet Would Like To Print
It's not a secret anymore!