Does JEditorPane support JavaScript, CSS, XHTML, HTML?

Can anyone confirm what JEditorPane actually can support? I can't find anything specific in the J6SE release notes and most of the stuff of Google is pretty dated, I have also searched the forums but nothing much on there that is recent. According to one post it supports some CSS and HTML but no JavaScript.

Can anyone confirm this?

What I plan to do is make a lightweight split pane editor for the above but I also want to be able to preview the code in another pane instead of launching a browser. If there still is no support then can anyone suggest an alternative way to get the same results?

Failing that I will just have to try and then fall back to the browser but it would be nice to know before hand. The online docs I read don't cover a lot on compatibility.

Cheers

[810 byte] By [_helloWorld_a] at [2007-11-27 6:55:06]
# 1
the answer is no. the html support in JEditorPane is very simple to be able to do things like simple help manuals and such. But you may be able to integrate the mozilla gecko engine into your application if you really want this. http://jrex.mozdev.org/
gimbal2a at 2007-7-12 18:30:26 > top of Java-index,Desktop,Core GUI APIs...
# 2

> the answer is no. the html support in JEditorPane is

> very simple to be able to do things like simple help

> manuals and such. But you may be able to integrate

> the mozilla gecko engine into your application if you

> really want this.

>

> http://jrex.mozdev.org/

Hi Gimbal,

Thanks for the info. The jrex thing certainly looks more like what I am after.

Cheers

_helloWorld_a at 2007-7-12 18:30:26 > top of Java-index,Desktop,Core GUI APIs...