|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Greetings,
I'm creating a simple program in Java2 for my University course. All I want to know is if it is possible to change the color of certain text in a JTextArea. I would like some words to be blue and some to be black. I've searched and searched and cannot find a way to do this. Is it possible? If so, what method would I use? Thanks in advance. |
|
#2
|
||||
|
||||
|
Textareas cannot have multiple colors, unless you do some serious hacking, this applies to most languages. RichTextFormat TextAres However can do this easily.
Have a look at this page, it should get you started. http://java.sun.com/docs/books/tuto...editorpane.html |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Basic Question from a Rookie: font colors in a JTextArea |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|