Help -- Jeditorpane doesnot support HTML Images for baseline

Hi All,

I have an issue with Jeditor pane supporting HTML. It a issue with the baseline where the inline images do not align correctly with the text.
I have tried different things like..

- adding align="bottom / middle / absbottom" to the image tag (worked in Firefox but not viewer)
- adding style="vertical-align:BOTTOM" to the image tag (worked in Firefox but not viewer)
- adding <sub></sub> around image tag (worked with words in viewer, but image still floating)
- adding vertical-align: baseline to the span/style attribute (works in Firefox, not in viewer)
- Switching <span> to <a> in attempt to anchor it to the baseline (works in Firefox, not in viewer)

I've never found HTMLDocument and HTMLEditorKit to be very faithful in its rendering of HTML.
One obvious answer to your problems is to suggest that you rethink your approach:
Why do you want to display HTML in Java?

You could try < ... style="vertical-align: +3;" ... >, or whatever displacement works.
I suspect that HTMLDocument will ignore this style attribute or at least treat it differently from FireFox.

A less obvious approach is to put blank spacers where you want the images
and then write code to display the images on top of the HTMLDocument.
This approach is both difficult and ugly.