Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1174

Re: Is HTML rendering tru

From "Natasha Lloyd" <natasha.lloyd@THRWHITE.remove-dii-this>
Subject Re: Is HTML rendering tru
Message-ID <1173894610.564932.156570@p15g2000hsd.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1173884498.618700.141780@n59g2000hsh.googlegroups.com>
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
> All this to ask: Is Java reliable for HTML rendering or should I bag
> the idea that Java can do this?

The problem is not with Java the language, but with the component
JEditorPane. More specifically, the problem is in the default
HTMLEditorKit that is used by JEditorPane to render the HTML. As it
says in the docs, the HTMLEditorKit only supports HTML 3.2, which is
pretty inadequate nowadays.

Instead of extending JEditorPane, you should probably look into third-
party packages that are meant to handle this problem. I can't
personally recommend any good free ones, but you can take a look at
this website, which reviews a few: http://today.java.net/pub/a/today/2004/05/24/html-pt1.html.
That website is pretty old (3 years) so you should just do a Google
search for "Java HTML renderer" and take a look at what comes up.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is HTML rendering truly p "Phil Powell" <phil.powell@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: Is HTML rendering tru "Natasha Lloyd" <natasha.lloyd@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: Is HTML rendering tru "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
    Re: Is HTML rendering tru "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000

csiph-web