This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Setting label font and text color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Setting label font and text color" Watch "Setting label font and text color" New topic

Setting label font and text color

Anthony Yip
Ranch Hand

Joined: Aug 24, 2003
Posts: 30
Dear all,
I am writing an Applet with the old AWT components. I have tried to use Label.setFont() and Label.setForeground() to change its font and text color. But it just ignore them. How can I do that?
Anthony Yip
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
It's a funny error, please post your code.
I agree. Here's the link:
subject: Setting label font and text color