Setting Colors in SWT

后端 未结 3 1595
南方客
南方客 2020-12-29 18:03

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 bee

3条回答
  •  误落风尘
    2020-12-29 18:21

    Remember that in SWT you must explicitly dispose any resources that you create when you are done with them. This includes widgets, fonts, colors, images, displays, printers, and GCs. If you do not dispose these resources, eventually your application will reach the resource limit of your operating system and the application will cease to run.

    See also: SWT: Managing Operating System Resources

提交回复
热议问题