Link to home
Start Free TrialLog in
Avatar of allie
allie

asked on

Printing

I have a class that printed fine in the J2RE 1.3 versions.  However, now that Sun's come out with the Plug-in J2RE 1.4 the printing is screwy.  The message box that says "An applet would like to print, is this OK?" doesn't go away when you click "yes" (at least not the first time), and when printing a component I get this:
"This is a t..."
Instead of this:
"This is a test"

Anyone else had these problems yet with printing from an applet?  Anyone have any idea how to fix it?

Thanks,
allie
ASKER CERTIFIED SOLUTION
Avatar of bobbit31
bobbit31
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
P: When trying to print a molecule in the applet, it asks "An applet would like to print" (Yes/No) several times, then the applet freezes.
S: You might use a buggy Java plugin version such as 1.4.0. You should upgrade (or downgrade) Java.
Detailed explanation: In Java 1.4.0, one Toolkit.getPrintJob() call results in two or more confirm dialogs asking the same question, then one PrintJob.getGraphics() call results in even more questions and freezing when called from an unsigned applet.
Avatar of allie
allie

ASKER

I've posted pretty much the same question in the Sun Java forums... depending on what they say, I'll report this as a bug to Sun.

I'm going to leave this question open for a bit in case anyone has any ideas or a workaround.  Unfortunately, going back to the 1.3.x version isn't an option since they have bugs of their own!  And the only upgrade I've seen available is 1.4.0_1, which seems to have the same problem.  I'll let you know what I get from the Sun forums.  Thanks for letting me know I'm not just crazy though!!

allie
allie:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.