Article View: borland.public.jbuilder.java.api
Article #529Re: Cant read the full text of a HTMLDocument???
From: John McGrath [TeamB]
Date: Wed, 06 Aug 2003 02:51
Date: Wed, 06 Aug 2003 02:51
17 lines
1474 bytes
1474 bytes
On 8/1/2003 at 5:26:28 PM, mathieu wrote:
> JEditorPan pane = new JEditorPane();
> pane.setEditorKitForContentType("text/plain", new HTMLEditorKit());
> pane.setPage("http://www.mypage.com");
It looks like you are telling the JEditorPane that it should use an
HTMLEditorKit when it encounters a plain text document. I think you
want to tell it that it should use a non-html editor kit when it
encounters an HTML document. Try this instead:
pane.setEditorKitForContentType("text/html", new StyledEditorKit());
--
Regards,
John McGrath [TeamB]
Technical Details
Message-ID:
<3f306d18@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f2adb04$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,139430cd09a4de9d X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-08-05 19:56:56 PST From: "John McGrath [TeamB]" <ng-b@jpmcgrath.net> Subject: Re: Cant read the full text of a HTMLDocument??? Newsgroups: borland.public.jbuilder.java.api References: <3f2adb04$1@newsgroups.borland.com> User-Agent: XanaNews/1.15.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.151.11.48 Message-ID: <3f306d18@newsgroups.borland.com> Date: 5 Aug 2003 19:51:04 -0700 X-Trace: newsgroups.borland.com 1060138264 141.151.11.48 (5 Aug 2003 19:51:04 -0700) Lines: 17 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail