JTextPane + attributes help
I am using a JTextPane to display a string representation of some data next
to a 50x50 gif icon and was wondering about displaying the text next to the
icon. right now it displays it as far down as it can, so the text is next
to the icon at the bottom of the icon. I would prefer the text to be about
halfway down from the top of the icon so it is centered next to the icon and
not at the bottom. I figure I would mess with the SimpleAttributeSet when I
use the insertString method of the JTextPane, but I don't know enough about
AttributeSets, any help is appreciated. Thanks.
--
The first rule of Star Wars Club
is that you do not talk about
Star Wars Club.
|