Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting font in JTextpane  RSS feed

 
Kejal Shah
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I wish to set different fonts for different strings in my JTextPane. But setting the font for the textpane ain't working.
Is there some definite approach to it?
Tx in advance
Kejal
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you tried with SimpleAttributeSet? If so, please post the Code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!