• Post Reply Bookmark Topic Watch Topic
  • New Topic

Possible to Change Selected Text Font ?

 
Brian Colan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a number of textpanes and I need to change the font size of the selected text , eg. make one line bigger than the rest of the text in the textpane. From the API, I cannot see how to do this. Is it possible ? If not, does anyone have any work arounds ? Thank you!
Brian.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Brian" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use AttributeSet or SimpleAttributeSet to change text Attributes in TextPane.
 
Brian Colan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!