I want to give a image link on my pc to a row on jtextpane. I give "text/html" ttype to jtextpane
jTextPane1.setContentType("text/html");
and I wrote this code for give image:
html text:
<img src= file:/"+myimageplace+" alt=\"Click to Open Image\" width=\"30\" height=\"30\">
this is working for showing image.
But I want to give that image to go to image like this :
<a href=\"file:/"+myimageplace+">\"<img src= file:/"+mytext+" alt=\"Click to Open Image\" width=\"30\" height=\"30\"></a>
But this isnt working?
How can I do that? Thanks.