Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Background Color for a Label
Background Color for a Label [message #66026] Fri, 21 February 2003 16:16 Go to next message
Eclipse UserFriend
Originally posted by: radienssmgs2.hotmail.com

How can I change the background color of a label?
I try this, but this only change the foreground. Thanks for any help.

label.setBackgroundColor(ColorConstants.gray);

label.setOpaque(false);

label.setForegroundColor(ColorConstants.red);
Re: Background Color for a Label [message #66068 is a reply to message #66026] Fri, 21 February 2003 17:03 Go to previous message
Eric Suen is currently offline Eric SuenFriend
Messages: 94
Registered: July 2009
Member
I think you should use label.setOpaque(true).

"Jack R." <radienssmgs2@hotmail.com> д
Previous Topic:tabulated vie problem
Next Topic:How to specify file format
Goto Forum:
  


Current Time: Sat Aug 10 08:01:17 GMT 2024

Powered by FUDForum. Page generated in 0.02999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top