Are you setting a background color by doing a fillRect()?
We are doing the exact thing right now and are having problems with
a different component GXLabel that looks ok on screen but prints the last
thing drawn in the GXLabel. So if we have a label and fill the rect with
a light grey and THEN do the drawstring we will overwrite the background
just set with the fill rect. But the on screen graphics look fine. So I
would say, look at the background you are printing. It might be the same
situation, might not. If anyone knows of a way around this
(Printing a GXLabel or other label with a background color) please let me
know.
-Bob
On Fri, 30 Jul 1999, corey wrote:
>
>
> Sorry if this is a little off the mark, but has anybody
> had success using the PrintJob class to print the contents
> of a JTextArea swing widget?
>
> I think I am doing everything right. I am setting the font
> and color on the Graphics object returned from PrintJob
> but all I get out of the printer when I use the drawString()
> method on the Graphics object is a blank page! If I instruct
> the printer popup to write to a file instead, I can see the
> text in the file, but I can't display it with GhostView.
>
> Any suggestions?
>
> --Corey
>
>
>
> /* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */
> /* AT&T NCS | [EMAIL PROTECTED] */
> /* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */
> /* (770)750-8071 | New rays from an ancient sun (JS) */
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]