Article View: borland.public.jbuilder.java.swing
Article #10260Re: Info about JEditorPane + HTMLEditorKit
From: Pete Haidinyak
Date: Wed, 20 Oct 1999 00:00
Date: Wed, 20 Oct 1999 00:00
34 lines
1988 bytes
1988 bytes
I have been playing around with the HTMLEditorKit and I can get it to display HTML and if you use the CSS class you can read in a style sheet which works with the Editor. I didn't do extensive testing, just wanted to see if it would work. -Pete sean wrote: > > Check out OReilly Java Swing chapter 24 > There is also a styled text editor example in /jdk1.2/demo/jfc/stylepad > I managed to modify this code so that it saves the styled content as html > using the HTMLEditorKit write method (it seems a it flaky though) but I cant > get it to do the reverse, i.e. read and render HTML. > If you have any luck let me know as I am also trying to write a styled text > editor which will save and read contents as HTML. > cheers > sean > sean@qss.co.uk > sean@scorpio.freeserve.co.uk > > Rene Leonhardt <rld@gft.de> wrote in message > news:7ssggq$lbr$1@proxy.st-georgen.gft.de... > > Iļæ½m writing a WYSIWIG-HTML Editor and have found the HTMLEditorKit but it > > seems to be very complex. > > > > And what about CSS? > > > > Does anyone knows where I can get infos or samples? > > > > With kind regards > > Rene > > > >
Technical Details
Message-ID:
<380E2118.97DE044C@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ssggq$lbr$1@proxy.st-georgen.gft.de> <7uia1c$ko$1@news6.svr.pol.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,ad5d63b1d2eb8eb5 X-Google-Attributes: gid111d45,public X-Google-Thread: 10fd6d,ad5d63b1d2eb8eb5 X-Google-Attributes: gid10fd6d,public From: Pete Haidinyak <javamann@home.com> Subject: Re: Info about JEditorPane + HTMLEditorKit Date: 1999/10/20 Message-ID: <380E2118.97DE044C@home.com> X-Deja-AN: 538551077 Content-Transfer-Encoding: 8bit References: <7ssggq$lbr$1@proxy.st-georgen.gft.de> <7uia1c$ko$1@news6.svr.pol.co.uk> X-Accept-Language: en X-Sender: "Pete Haidinyak" <@smtp.gateway.net> (Unverified) Content-Type: text/plain; charset=iso-8859-1 X-Trace: client 940450135 38.213.202.221 (Wed, 20 Oct 1999 16:08:55 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Wed, 20 Oct 1999 16:08:55 EDT Newsgroups: borland.public.jbuilder.java.swing,comp.lang.java.gui