• Post Reply Bookmark Topic Watch Topic
  • New Topic

Formatted Text and JTextArea  RSS feed

 
Amy Phillips
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a JTextArea which is displaying some text related to a selected component. Is it possible to format this text say with different fonts and spacing?
Thanks
Amy
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, but you have to use JTextPane or JEditorPane instead.
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good place to start learning about JTextPane and JEditorPane is Sun's JtextPane/JEditorPane tutorial.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!