This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

displaying words in different fonts or colors in a textarea  RSS feed

 
bhagavatula indu sekhar
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i display text in a Textarea in different colors or fonts?
how can i set the cursor postion in Textarea?
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use html and the Swing/Java Html based components (google) ...
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> how can i display text in a Textarea in different colors or fonts?

use a JTextPane


> how can i set the cursor postion in Textarea?

setCaretPosition()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!