Java and CSS

Status
Not open for further replies.
I'm using the JEditorPane along with the HTMLEditorKit to display some very simple html that's being generated by xsl, and i've run in to not so much a problem as a major inconvenience.

I'd like to be able to use css to configure the documents presentation but i cant get css classes to work. I can't find anywhere that specifically says they are or arent supported but the Swing HTML package does support the div and id tag along with the class attribute. So my question is ... does it support css classes ? If not does anyone have suggestions for a third party java text widget that does? Thanks,

futang
 
Flagstone, thanks for the effort. Sadly I've been there. I am already successfully using style sheets. I just can't seem to apply my own classes. Not sure im saying that correctly, i mean for intsance the following syntax

Code:
.futang {
     font-size: 16pt;
}

does not seem to work. What sucks about the javadoc is that it says it supports HTML 3.2, it says it supports CSS, but nowhere does it provide real DETAILS to the level of its support. Any more suggestions ? Thanks again,

futang
 
Status
Not open for further replies.