This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Applets and the fly likes Java chart printing problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Java chart printing problems" Watch "Java chart printing problems" New topic

Java chart printing problems

Rune Thandy

Joined: Jan 10, 2006
Posts: 5
I�ve made a javaclass to make certain graphs. When I call it from a jsp page, it all works fine. The graph comes nicely on screen with labels and lines. The problem starts when I try to print it. When I choose File/Print to choose a printer, the labels in the graph disappear, but the lines stay. When I print it, the print shows what was on screen: the graph with the lines, but no labels. When I refresh the screen, the labels appear again, but when I try to print it again, the same problem starts again. What could cause this? Can anyone help me with this?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
What kind of charting software do you use? How is the chart generated?
Rune Thandy

Joined: Jan 10, 2006
Posts: 5
I've done it through an Applet.
The labels are made with a drawString.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Moved to the Applets forum.

[Asking smart questions] [About Bear] [Books by Bear]
joe woods

Joined: Dec 08, 2005
Posts: 5
[ UD: blatant advertising removed ]
[ February 21, 2006: Message edited by: Ulf Dittmer ]
I agree. Here's the link:
subject: Java chart printing problems
It's not a secret anymore!