Dear all, I have created a JEditorPane, which takes html page as part of setpage method. The problem is, when html page has a tag like this: <a href="#chapter4" title="Got to chapter 4">chapter 4</a> In IE title is displayed as a tooltip, but in JEditorPane, loading same html page, tooltip is not displayed. Does someone know whether I need to use any method from java to turn this feature ON or something similar. Thanks in advance Nilesh
I think you would have to implement that yourself... Though I think it would be pretty easy to do. I think that you would extend your JEditorPane's getToolTipText( MouseEvent ) and getToolTipLocation( MouseEvent ) methods. In these methods, find out where the mouse event is and see if there is a link on the JEditorPane at that point. If there is then display a tooltip based on some property of that link. Title is kind of a pain because you'll have to load the html of that page in a buffer and get the title from it. Seems a little bit inefficient...
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.