Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

An easy problem  RSS feed

 
chenw
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I using "lalel.setBackground(color)" to set the background of a label,the label can not change the color of its background. why?How can I do ? Thanks a lot.
 
dubey vandana
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
just write the follw stmnt before setbackround stmnt:
label.setOpaque(true);
see wheter you get what you want.
bye
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!