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
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