Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Color and dispose
Color and dispose [message #445448] Fri, 05 November 2004 21:36
jmi is currently offline jmiFriend
Messages: 84
Registered: July 2009
Member
Hi,

When i do this:

public class MyTest extends Composite {
public MyTest (final Composite argParent, final int argStyle) {
super(argParent, SWT.NONE);
Color colorB = argParent.getDisplay()
.getSystemColor(SWT.COLOR_TITLE_BACKGROUND_GRADIENT);
setBackground(colorB);
}
....

Do i have to dispose the colorB to avoid memory leak ????

Thanks

JMi
Previous Topic:Table row heigth with GridLayout
Next Topic:setWidth for ToolItem in ToolBar does not function as expected
Goto Forum:
  


Current Time: Thu Oct 29 00:13:38 GMT 2020

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

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

Back to the top