🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1255

JEditorPane question

#1255
From: George
Date: Mon, 01 Mar 2004 20:14
13 lines
1323 bytes
I want to display email messages in a non-editable JEditorPane.  When the
message is of type
"text/plain" the following works.

myEditorPane.setText((String) message.getContent());    // message is a
javax.mail.Message object

However when the message is of type "text/html" the above approach displays
all the html tags along with the message.  How can I get the JEditor pane to
render HTML content in the way that we normally see in Java Help screens?

TIA.
George
Technical Details
Message-ID: <40439952$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5febcff31b1675be,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-01 12:35:24 PST
From: "George" <geo_54321@yahoo.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JEditorPane question
Date: Mon, 1 Mar 2004 15:14:28 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 63.119.115.129
Message-ID: <40439952$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078171986 63.119.115.129 (1 Mar 2004 12:13:06 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail