Hi all,
I have a JEditorPane which displays some HTML document with a picture, using an img tag with just a source parameter with something like
file:///path/to/my/picture.jpg as its value.
Now when I click inside the JEditorPane with my right mouse button, a mouse listener picks this up, which in turn has a pop up menu pop up. But now I want the pop up menu to have some extra options when I click on the picture.
My question is therefore: is there some way for me to find out if either the picture has been clicked, or the text around it?
Thanks for any help!