sampleFont = null; if (sampleColor != null) sampleColor.dispose (); sampleColor = null;
public FontData open () {	shell = new Shell (getParent (), getStyle () | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);	createChildren ();	installListeners ();			initializeWidgets ();	setFontData (null);	openDialog ();	Display display = shell.getDisplay ();	while (!shell.isDisposed ()) {		if (!display.readAndDispatch ()) display.sleep ();	}		FontData result = null;	if (okSelected) result = getFontData ();	if (sampleFont != null) sampleFont.dispose ();	return result;}