Article View: borland.public.jbuilder.java.api
Article #3231html print
From: Chris Perks
Date: Fri, 20 Mar 1998 00:00
Date: Fri, 20 Mar 1998 00:00
26 lines
1401 bytes
1401 bytes
Hello,
I've created a Html panel class that extends JPanel and implements
HyperlinkListener, ie I've used a swing component.I use Jbuilder
designer to place the swing component and then move the code to a JDK
1.1.5 compiler.
The panel displays a html text file and I would appreciate any
information as how to PRINT it.
I've looked at Class com.sun.java.swing.text.html.HTMLEditorKit and
found:
public void write(Writer out,
Document doc,
int pos,
int len) throws IOException, BadLocationException
Write content from a document to the given stream in a format
appropriate for this kind of content handler. If 'out' is the stream to
write to, could I specify the printer and if so what would I code. Is
g.drawString and all that mathematical formatting my only option?
Regards,
Chris Perks
the //connection
Hong Kong
Technical Details
Message-ID:
<3511E3D7.88CF903F@connection.com.hk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,6eee5490b004cfaf,start X-Google-Attributes: gid1089d0,public From: Chris Perks <chris.perks@connection.com.hk> Subject: html print Date: 1998/03/20 Message-ID: <3511E3D7.88CF903F@connection.com.hk> X-Deja-AN: 335818223 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