Can I use different font-styles within the same TextArea?



Hi folks!

I just wondered if I can have different colors for the text within the
same TextArea. Drawing a string offers the opportunity to use differen
colors for the font one draws. I just tried to display some lines of
green and some lines of red text within a TextArea and this seems to be
a complete different thing. So I'd like to ask the ones that know if
that is possible in general. It does not seem so. Am I right or do I
just not know how to cope with TextAreas?

Christian

.



Relevant Pages

  • Re: Redirecting System.out and exotic characters
    ... You have a character encoding problem. ... bytes received into a String and update the TextArea with it. ...
    (comp.lang.java.programmer)
  • Re: Detecting highlighted text in textarea.
    ... >> new computer users in our local seniors' computer club. ... >> includes a textarea and a button. ... >> I wish to detect what the user highlighted and store it as a string to ... > Textarea's event handler is actionPerformed. ...
    (comp.lang.java)
  • Re: eval function with linebreaks in textarea
    ... I get an unterminated string constant. ... a valid way to setting the content of a textarea named "intro_text"? ... Also, it'll fall over if the content has double quotes, invalid unicode ...
    (comp.lang.javascript)
  • Re: Swing und der EventHandlingThread
    ... TextArea geschrieben und der Cursor dort hin gesetzt und auf den Bereich gescrollt. ... public void outputLine(final String string) ... final int lastLine = textArea.getLineCount- 1; ...
    (de.comp.lang.java)
  • Re: Line breaks ( ) from a html form textarea??? HELP!
    ... I have an HTML form with a textarea on it. ... not 'post') this forms action php file simply does this to retrieve the ... Now it all works fine but I get the string in one long string with no ... and the user hits refresh immediately after? ...
    (comp.lang.php)