Re: Is HTML rendering truly possible with Java?



Oliver Wong wrote:
"Phil Powell" <phillip.s.powell@xxxxxxxxx> wrote in message news:1173884498.618700.141780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[OP has had problems with JEditorPane and HTML]
All this to ask: Is Java reliable for HTML rendering or should I bag
the idea that Java can do this?

Java, the programming language, is just as suitable as any other programming language for HTML rendering (see http://en.wikipedia.org/wiki/Turing_complete).

One specific piece of code written in Java (e.g. JEditorPane) may be bad at rendering HTML, just like one specific piece of code written in any language might be bad at rendering HTML.

You may be interested in http://jrex.mozdev.org/ among other Java HTML projects.

- Oliver



Also take a look at xhtmlrenderer at dev.java.net

Rogan
.



Relevant Pages

  • Re: What is the learning curve for PHP?
    ... HTML properly either. ... Books become ... HTML is not a programming language at all -- it's a data format, ... but isn't militant about making you use it like Java is. ...
    (comp.lang.php)
  • Re: chopping of string
    ... comments in HTML, as rendered by JEditorPane) ... of course the Java Glossary was in the top 5 hits, ... "This Page Is Valid HTML 4.01 Transitional!" ... how much/little screen space is devoted to it. ...
    (comp.lang.java.programmer)
  • Re: Is HTML rendering truly possible with Java?
    ... The problem is not with Java the language, ... HTMLEditorKit that is used by JEditorPane to render the HTML. ... That website is pretty old so you should just do a Google ...
    (comp.lang.java.gui)
  • Re: ArrayIndexOutOfBoundsException: -1 stack periodically occurs
    ... are a number of issues within JEditorPane itself inasmuch as how it ... handles HTML. ... Java seems to provide no way of cleaning ... public SimpleHTMLRenderableEditorPane(String type, String text) { ...
    (comp.lang.java.help)
  • Re: JEditorPane memory consumption
    ... Thanks i fixed the problem by integrating ie in my java application. ... JEditorPane is totally unsuited to ... Yes the pages were written by me and they are simple html pages: ... The memory problems *I* saw were not any memory leak. ...
    (comp.lang.java.gui)