?
Solved

Printing

Posted on 2003-02-26
4
Medium Priority
?
163 Views
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?

Thanks,
allie
0
Comment
Question by:allie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 18

Accepted Solution

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

Expert Comment

by:bobbit31
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.
0
 
LVL 2

Author Comment

by:allie
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!!

allie
0
 

Expert Comment

by:CleanupPing
ID: 9059052
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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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 Month10 days, 21 hours left to enroll

770 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