标签云

微信群

扫码加入我们

WeChat QR Code

This is pretty simple, I come from a swing/awt background.

I'm just wondering what the proper way to set the background color for a SWT widget is?

I've been trying:

widget.setBackground( );

Except I have no idea how to create the color Object in SWT?


That worked. Thanks, your the man. I just couldn't find where to get current device from.

2018年08月16日20分57秒

Make sure you don't forget to dispose of this Color! Otherwise you will leak native resources.

2018年08月16日20分57秒

This should be your standard for any color supported in the SWT.COLOR_* set. As stated, you do not need to remember to dispose of colors created in this fashion.

2018年08月16日20分57秒

SWT.COLOR_LIST_BACKGROUND : awesome.

2018年08月16日20分57秒

I suggest you use this SWTResourceManager

2018年08月16日20分57秒