Article View: borland.public.jbuilder.java.language
Article #17903PrintJob.Graphics.drawString() won't accept or recognize form feed (?)
From: David Jensen
Date: Fri, 18 Sep 1998 00:00
Date: Fri, 18 Sep 1998 00:00
18 lines
1140 bytes
1140 bytes
I'm doing some crude but effective printing of the contents of a jTable
using the code snippet below.
public PrintJob pj;
public Graphics aGraphicsObj = pj.getGraphics();
aGraphicsObj.drawString(vsHeaderString, XPrintPosition,
HeaderPrintPosition);
My problem is that I can't print on subsequent pages because the
drawString() method won't accept or recognize the form feed character ("\f")
as part of the first (String) parameter to this method.
Is there a better way to do this, or am I overlooking something here? Any
comments, suggestions, or ideas on this matter would be greatly appreciated.
Thanks in advance,
David
<jensend@txen.com>
Technical Details
Message-ID:
<6tufu2$bqo3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4a8341e19e2ed337,start X-Google-Attributes: gidf74b3,public From: "David Jensen" <jensend@txen.com> Subject: PrintJob.Graphics.drawString() won't accept or recognize form feed (?) Date: 1998/09/18 Message-ID: <6tufu2$bqo3@forums.borland.com> X-Deja-AN: 392525188 Organization: Nichols TXEN, Inc. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 Newsgroups: borland.public.jbuilder.java.language