JAVA - How do I set the colour of a label (coloured text)?

Posted by Stefanos Kargas on Stack Overflow See other posts from Stack Overflow or by Stefanos Kargas
Published on 2010-06-03T13:24:45Z Indexed on 2010/06/03 13:54 UTC
Read the original article Hit count: 230

Filed under:
|
|
|
|

How do I set the color of the text of a label?

myLabel.setText("Text Color: Red");
myLabel.???

Can I have two seperate colors in one label? For example here:
The "Text Color:" to be black
and the "Red" to be red.

© Stack Overflow or respective owner

Related posts about java

Related posts about text