Title Attribute Of An HTML Tag In A JTextPane

A

Adam Polt

Hi, everyone.

I've run into a little trouble displaying a tooltip in an HTML
document using the "title" attribute in a JTextPane. The problem
doesn't seem to be with the HTML but with how it gets displayed in the
text pane.

For example, if I wanted to display this HTML tag in the text pane:

<
IMG SRC="./images/spacer_red.gif" BORDER="0" WIDTH="32" HEIGHT="20"
ALT="a red spacer" title="Test ToolTip"
In IE and Firefox it correctly displays a tooltip while mousing over
the image that says "Test ToolTip." However, in my JTextPane it
doesn't do anything when moused over.

Is this by design? If so, is there a way to get around it, a
different/better way to do it, etc?

Thanks!

-Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top