🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2965

Printing Charts

#2965
From: Rich Shadduck
Date: Mon, 06 Jul 1998 00:00
18 lines
1195 bytes
I'm new to JBuilder and are trying to print charts that are already
displayed on the screen using KL Group's jcchart.  I hit the Print menu
item to invoke the following code.  The PrintDialog comes up, but I get
a blank page coming to the printer.  I've included the source that I am
using.  The JCChartComponent is right off the main Frame.

Any help would be appreciated.
Rich S.

public void filePrint_actionPerformed(ActionEvent e)
{
    pj = getToolkit().getPrintJob(this, "Print test", null);
    Graphics pg = pj.getGraphics();
    printComponents(pg);
    pg.dispose();
    pj.end();
}
Technical Details
Message-ID: <35A17B24.A802634F@ksgi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5619,5316dbb5f0ae8b3d,start
X-Google-Attributes: gidf5619,public
X-Google-Thread: 1089d0,5316dbb5f0ae8b3d,start
X-Google-Attributes: gid1089d0,public
From: Rich Shadduck <rks@ksgi.com>
Subject: Printing Charts
Date: 1998/07/06
Message-ID: <35A17B24.A802634F@ksgi.com>
X-Deja-AN: 369076674
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.jbcl