I have a JEditorPane created by this way:
JEditorPane pane = new JEditorPane('text/html', '<font face='Arial'>' + my_text_to_show + '<img src='/root/img.gif'/>' + '</font>');
I put this pane on a JFrame.
Text is shown correctly, but I can’t see the picture, there is only a square indicating that there should be an image (i.e.: ‘broken image’ shown by browsers when picture has not been found)
You have to provide type, and get the resource. That’s all. My tested example, but I’m not sure about formating. Hope it helps: