🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19183

Printing: I get Print Dialog, but nothing prints!

#19183
From: Alex Humphreys
Date: Wed, 04 Mar 1998 00:00
21 lines
1234 bytes
I'm trying to print a string, but for some reason I get Windows' Print
Dialog, but then Nothing Prints.  I've tried to follow the instructions
I've found in this newsgroup, and nothing seems to help.

I have the following in my jbinit of a Frame I just created.  the print
dialog comes after the first line, so the Graphics calls don't seem to
do anything.

    PrintJob myJob =
Toolkit.getDefaultToolkit().getPrintJob(this,"AlexH",new Properties());
    Graphics myGraphics = myJob.getGraphics();
    this.printAll(myGraphics);
    myGraphics.dispose();
    myJob.end();

(incidentally, what should be printed if I do this?  an image of the
Frame?  A string that I can specify?)

Thanks.
--Alex
Technical Details
Message-ID: <34FDB70E.5A5784F6@sema4.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: f74b3,56b3af2cddf188a7,start
X-Google-Attributes: gidf74b3,public
From: Alex Humphreys <ahumphreys@sema4.com>
Subject: Printing:  I get Print Dialog, but nothing prints!
Date: 1998/03/04
Message-ID: <34FDB70E.5A5784F6@sema4.com>
X-Deja-AN: 330851708
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language