Mombu the Programming Forum

Mombu the Programming Forum > Programming > JTextPane + attributes help
REGISTER NOW! Mark Forums Read




Reply
 
Thread Tools Display Modes
1 16th May 19:57
akuma
External User
 
Posts: 1
Default 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.
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666