标签云

微信群

扫码加入我们

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?


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

2019年05月27日53分19秒

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.

2019年05月27日53分19秒

SWT.COLOR_LIST_BACKGROUND : awesome.

2019年05月27日53分19秒

I suggest you use this SWTResourceManager

2019年05月27日53分19秒