🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15122

Re: JEditorPane trouble showing HTML tags!!

#15122
From: Max Polk
Date: Sat, 10 Jul 1999 00:00
22 lines
1512 bytes
In article <37824A0E.ED87A7E4@intellicomm.com>,
hsingh@intellicomm.com says...
> I have a simple string below that I would like to show as a test case in
> a JEditorPane. The following line appears in the JEditorPane but the
> text is not BOLD, i.e. it is ignoring <b> and </b> tag. Is there
> something different I have to do? thanks in advance. -harprit
> 
>     String strQuote = "<HTML><BODY><b>This is a sample text in a
> JEditorPane. </b></BODY> </HTML>";

The rendering is supposedly HTML 2.0, but it doesn't even support that 
very well.  Strangely enough, if you look at the JFC 1.1 examples, you 
will see writing to a JEditorPane with attributes (not HTML tags), and it 
does bold and italics and whatnot very well.

So they *COULD* render it correctly if they wanted to.  The support is 
already there.  I have a feeling that they *PURPOSELY* made the HTML 
rendering quite bad so that you would buy the HotJava component (or some 
other HTML rendering component for $$$).

-- 
I grant this to the public domain
Technical Details
Message-ID: <MPG.11f125b7cd54439f989701@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37824A0E.ED87A7E4@intellicomm.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,acf30c09c95f3216
X-Google-Attributes: gidf74b3,public
From: none@none.invalid (Max Polk)
Subject: Re: JEditorPane trouble showing HTML tags!!
Date: 1999/07/10
Message-ID: <MPG.11f125b7cd54439f989701@forums.borland.com>
X-Deja-AN: 499465511
References: <37824A0E.ED87A7E4@intellicomm.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language