How do I get two styles in a JTextPane to work together?
Or, in another way, I have 3 styles (Bold, Italic, and Underline), how
can I use two of these at once?
Philbo.B.Baggins@gmail.com - 13 Jun 2006 08:06 GMT
NB:
I'm doing this from 3 toggle buttons, so the styles are going to be
"added" one at a time, and I think this makes a difference to the way
this works.
Should I just make 7 styles (One for Bold, One for BoldItalic, one for
UnderlineItalic etc....) or is there actually a better way?
I can use .addAttributes of the styles to make new styles, but I may as
well hardcode the 7 styles.