• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chainging Background color of JLabel  RSS feed

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you change the background color of a JLabel? I've tried to change it
to label.setBackground( Color.WHITE ); and it still turns out looking
the usual grey.

Thanks.
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
label.setOpaque(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!