Article View: borland.public.jbuilder.java.swing
Article #9738Converting styled text in JTextPane to HTML
From: Helene Lund
Date: Thu, 10 Feb 2000 00:00
Date: Thu, 10 Feb 2000 00:00
11 lines
1120 bytes
1120 bytes
Hi! I'm making a text editor using JTextPane, with support for styled text such as bold, italic, etc. The contents of the textPane can be saved, but the problem is that i want this text to be converted to HTML. In other words, so that for instance the parts of the text that are bold style are saved as <b>some text</b>. Do any classes in Swing support this? Any ideas on how to do this if not? Any help will be greatly appreciated! -Helene
Technical Details
Message-ID:
<ujAo4.26974$in5.500693@news1.online.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b7730c9de800fcca X-Google-Attributes: gid111d45,public From: "Helene Lund" <hl@inn.no> Subject: Converting styled text in JTextPane to HTML Date: 2000/02/10 Message-ID: <ujAo4.26974$in5.500693@news1.online.no> X-Deja-AN: 584128562 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: news-abuse@online.no X-Trace: news1.online.no 950194522 193.214.28.5 (Thu, 10 Feb 2000 15:55:22 MET) Organization: Telenor Online Public Access X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 10 Feb 2000 15:55:22 MET Newsgroups: borland.public.jbuilder.java.swing