🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JEditorPane in HTML mode

#10884
From: Alexander Docter
Date: Mon, 02 Aug 1999 00:00
30 lines
1419 bytes
Hi,

I use an JEditorPane to see a code fragment in HTML-view

JEditorPane editpane = new JEditorPane();
..
editpane.setContentType("text/html");
editpane.setText("<HTML><HEAD><TITLE>title</TITLE></HEAD><BODY>this is the
BODY</BODY></HTML>");

When I run the application the editpane shows four stange boxes
with the texts
head
title
title
head.

If I remove the title tags (which is no good HTML, I guess)
only the "head" boxes are shown.
But when I remove also the head tags these boxes remain.

The rest of the HTML is shown normally.
I have tried also other tags like lists and forms and they all work fine.

Is there something wrong with my HTML or is this a known bug?
Or do I have the wrong contenttype?

Any help would be appreciated.

Alexander
Technical Details
Message-ID: <933574352.654782@newsreader2.wirehub.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,877633c8d26ebc09,start
X-Google-Attributes: gid111d45,public
From: "Alexander Docter" <alexander@e-norm.com>
Subject: JEditorPane in HTML mode
Date: 1999/08/02
Message-ID: <933574352.654782@newsreader2.wirehub.nl>
X-Deja-AN: 507853832
Cache-Post-Path: newsreader2.wirehub.nl!unknown@ip195-86-113-223.dyn.wirehub.net
Organization: Wirehub! Internet, The Netherlands (complaints to abuse@wirehub.net)
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing