Skip to main content



      Home
Home » Eclipse Projects » GEF » Add an icon in the LogicLabel
Add an icon in the LogicLabel [message #62211] Wed, 05 February 2003 11:04
Eclipse UserFriend
Originally posted by: sy_cheung2.yahoo.com

Hi,

I create a blue circle as my icon and add that to LogicLabel using the
following code, but what I get is a blue circle with 4 "dots" around it (see
attached bmp). Can someone please tell me why?


static public Image BLUE_ICON = new Image(null, 16, 16);

GC gc1 = new GC (BLUE_ICON);

gc1.setBackground(ColorConstants.blue);

gc1.fillOval(0, 0, 16, 16);


Label label = new Label();

label.setBorder(BORDER);

label.setIcon(BLUE_ICON);




  • Attachment: untitled.jpg
    (Size: 46.44KB, Downloaded 95 times)
Previous Topic:Change figure of an edit part dynamically
Next Topic:examples
Goto Forum:
  


Current Time: Mon May 05 23:44:19 EDT 2025

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

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

Back to the top