Article View: borland.public.jbuilder.java.language
Article #15219JEditorPane trouble showing HTML tags!!
From: Harprit Singh
Date: Tue, 06 Jul 1999 00:00
Date: Tue, 06 Jul 1999 00:00
14 lines
1137 bytes
1137 bytes
Hi:
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>";
JEditorPane editorPane = new JEditorPane();
editorPane.setContentType("text/html");
editorPane.setEditable(false);
editorPane.setText(strQuote);
JScrollPane listScrollPane = new JScrollPane(editorPane);
Technical Details
Message-ID:
<37824A0E.ED87A7E4@intellicomm.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: f74b3,acf30c09c95f3216,start X-Google-Attributes: gidf74b3,public From: Harprit Singh <hsingh@intellicomm.com> Subject: JEditorPane trouble showing HTML tags!! Date: 1999/07/06 Message-ID: <37824A0E.ED87A7E4@intellicomm.com> X-Deja-AN: 497829357 Content-Transfer-Encoding: 7bit Organization: Intellicomm Inc. Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Reply-To: hsingh@intellicomm.com Newsgroups: borland.public.jbuilder.java.language