It's not a secret anymore!*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Setting label font and text color" Watch "Setting label font and text color" New topic
Author

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?
Regards
Anthony Yip
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
It's a funny error, please post your code.
 
jQuery in Action, 2nd edition
 
subject: Setting label font and text color