Article View: borland.public.jbuilder.java.swing
Article #10776jeditorpane
From: paulbras
Date: Tue, 10 Aug 1999 00:00
Date: Tue, 10 Aug 1999 00:00
22 lines
1369 bytes
1369 bytes
I am trying to render an html page using JEditorPane
Using HTTPClient to obtain an InputStream instance I am then using
read to show the page. Nothing happens... Below is the code sample
(content is an instance of JEditorPane)
HTTPConnection connection = new HTTPConnection("www.roadrunner.uk.com");
connection.setCurrentProxy("193.133.123.102",8080);
HTTPResponse response = connection.Get("/java/load.html");
InputStream is = response.getInputStream();
//THE ABOVE BIT IS WORKING
content.setEditable(false);
content.setContentType("text/html");
content.read(is,response.getData());
//I AM NOT SURE ABOUT THE SECOND PARAMETER OF THE READ METHID
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Technical Details
Message-ID:
<7op4ig$68t$1@nnrp1.deja.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: 111d45,89488c94a7f491f8,start X-Google-Attributes: gid111d45,public From: paulbras@my-deja.com Subject: jeditorpane Date: 1999/08/10 Message-ID: <7op4ig$68t$1@nnrp1.deja.com> X-Deja-AN: 511009537 X-Http-Proxy: 1.0 x35.deja.com:80 (Squid/1.1.22) for client 193.133.123.102 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Aug 10 12:05:41 1999 GMT X-MyDeja-Info: XMYDJUIDpaulbras Newsgroups: borland.public.jbuilder.java.swing X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)