Reputation: 639
So I know how to insert an image in the JeditorPane in Java. But for example I would like to put the image between (for example) the 3 and 4 line of text in my Jeditorpane.
It's like in Gmail where you can edit your Signature and you can put some images in it.. What I am trying to do is an email service provider and I would also like to make my own Signatures...
Upvotes: -1
Views: 1040
Reputation: 1487
What you need is a HTML Editor with live previe:
Ekit seems fairly light (160Ko in one jar, source and jar here)
(source: hexidec.com)
Upvotes: 2
Reputation: 21778
Set content type to text/html
and JEditorPane will start rendering the assigned text as HTML. This question explains how to put images. No third party library is necessary, unless you want to use HTML features above 3.2.
Upvotes: 0