• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the color of one char

 
Ran Togo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to change the color of only one char in TextArea?
for example, the first char in a string is blue while the rest of the string is in black.
I don't want to use JEditor nor Jlable. I want to change the char in the TextArea.
[ May 19, 2006: Message edited by: Ran Togo ]
 
Paul Clapham
Sheriff
Posts: 20983
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. If you want to render parts of your text differently from other parts, you have to use a JTextPane or a JEditorPane.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic