Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Styled text?

 
Meyer Florian
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there

Does anybody know any solution that allows the user to format the text he enters into a text area (font size, color, type etc.). Important is that the user can use different font styles within the same text area.

SWT or Swing!

Thank you for any comment
Florian
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want the text to be automatically displayed with the font, color, etc. in the text area or are you talking about providing options to let a person change font, etc. after the text has been typed in? If you want it automatically you may need to create your own listener, document, or document filter. I'd suggest going through the Text Component Features part of the Java Tutorial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic