[thelist] Java: JLabel's background color

Aleem Bawany aleem.bawany at utoronto.ca
Fri Jan 10 06:15:01 CST 2003


> Another Java question: Doing
> label.setBackground(Color.WHITE) does nothing.  It does
> work on other objects, just not JLabels.
>
> Anyone know what's wrong?  I'm using Java 2, version
> 1.4.0.

<tip type="Java GUI" author="Aleem">
Designing an interface in Java (applet or application)? Give
http://www.thinlet.com a try. It's a GUI toolkit that allows
you to write your interface using XML and guaranteed to save
you hours of work.
</tip>




More information about the thelist mailing list