Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to change the backround color of a label
How to change the backround color of a label [message #152272] Tue, 28 September 2004 16:39 Go to next message
Eclipse UserFriend
Originally posted by: dakanalis.ced.tuc.gr

I am trying to change the backround color of a label by using the
setBackround method of the Label class but nothing is happens. When i used
the setForeground method there wasn't any problem.


Any idea?
Re: How to change the backround color of a label [message #152281 is a reply to message #152272] Tue, 28 September 2004 17:01 Go to previous messageGo to next message
Alex Selkov is currently offline Alex SelkovFriend
Messages: 73
Registered: July 2009
Member
Label l = new Label("Label");
l.setBackgroundColor(ColorConstants.lightBlue);
l.setForegroundColor(ColorConstants.blue);
l.setOpaque(true); // Non-transparent label

Works for me.

Regards,

as

"TTT" <dakanalis@ced.tuc.gr>
Re: How to change the backround color of a label [message #152288 is a reply to message #152272] Tue, 28 September 2004 17:14 Go to previous message
Eclipse UserFriend
Originally posted by: dakanalis.ced.tuc.gr

Thank you very much!!!



Previous Topic:Does GEF support a hierarchical layout of nested subgraphs?
Next Topic:RectilinearHandleRouter
Goto Forum:
  


Current Time: Fri Apr 19 00:58:57 GMT 2024

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

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

Back to the top