Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing font color --- URGENT  RSS feed

 
Anu
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys !!
Can anyone of u pls let me know how can i change color of font in AWT.
Looking for an urgent reply !! Thanx in advance !!
Anukampa
 
Ana Mihailescu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that you want to have a text with a certain kind of font. The most important is where do you want to use this text;
If , for example you want a label, with font and color, you should set the font and the color for the label, not for the text af the label; I guess that all the components which can contain text, have available a method for seting the font, the color of the font (foreground) and the background ...
Ok?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!