|
Yes, that will do it.
But, if you want this to affect all JLabel components, you
need to change the UI default value for Label.foreground. To change it to
red:
javax.swing.UIManager.put ("Label.foreground",
Color.red);
Alternatively you can set this via a custom LookAndFeel class,
which is what I do.
|
Title: RE: set color of JLabel text
- set color of JLabel text Mario Fernandes (IT Dept. - Langley)
- Re: set color of JLabel text Dmitry Beransky
- RE: set color of JLabel text Pepelis, Aaron
- RE: set color of JLabel text Greg Munt
- RE: set color of JLabel text Pepelis, Aaron
- Re: set color of JLabel text Greg Munt
