Skip to main content



      Home
Home » Eclipse Projects » GEF » Background Color for a Label
Background Color for a Label [message #66026] Fri, 21 February 2003 11: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 12:03 Go to previous message
Eclipse UserFriend
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: Tue May 06 17:54:57 EDT 2025

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

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

Back to the top