This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

Warning Message - An Applet Would Like To Print

Andrew K.
Greenhorn

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"
Sheriff

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: 16019
    
  20

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 com.microsoft 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.


Customer surveys are for companies who didn't pay proper attention to begin with.
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.
 
wood burning stoves
 
subject: Warning Message - An Applet Would Like To Print