[thelist] Java: JLabel's background color
David Treves
dwork at macam.ac.il
Sun Jan 12 00:27:01 CST 2003
add the following line before setting the backgroung color of the label:
label.setOpaque(false);
HTH,
David.
----- Original Message -----
From: "Kevin W" <null at tsn.cc>
To: <thelist at lists.evolt.org>
Sent: Friday, January 10, 2003 1:33 PM
Subject: [thelist] Java: JLabel's background color
> 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.
>
> --
> Kevin W :-)
> --
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
More information about the thelist
mailing list