How can I set background to a JLabel?

Hi,Can you tell me how can I set background to a JLabel.I have:JLabel prop = new JLabel(property);prop.setBackground(Color.red);but it doesn't work....Thank you in advance....
[232 byte] By [vladshtr] at [2007-9-26 2:36:19]
# 1
maybe this helps:JLabel prop = new JLabel("property");prop.setBackground(Color.red);prop.setOpaque(true); otherwise you see the background of the component
wagner99 at 2007-6-29 10:03:56 > top of Java-index,Archived Forums,Swing...
# 2
ty wagner99 ... :)
gkaran at 2007-6-29 10:03:56 > top of Java-index,Archived Forums,Swing...