Posted on 2003-02-26
Medium Priority
Last Modified: 2010-03-31
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?

Question by:allie
  • 2
LVL 18

Accepted Solution

bobbit31 earned 200 total points
ID: 8026406
yeah, i've had the same problems, it's a bug. :(
LVL 18

Expert Comment

ID: 8026413
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.

Author Comment

ID: 8028605
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!!


Expert Comment

ID: 9059052
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 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month3 days, 13 hours left to enroll

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question