• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying words in different fonts or colors in a textarea

 
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