Add an icon in the LogicLabel [message #62211] |
Wed, 05 February 2003 11:04 |
Eclipse User |
|
|
|
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)
|
|
|
Powered by
FUDForum. Page generated in 0.04990 seconds