font = new Font( null, fontDialog.getFontData() );
font = new Font( null, fontDialog.getFontList()[0] );
	public ExtendedFontFieldEditor( String name, String labelText, String sampleText, Composite composite ) {		fontDialog = new FontDialog( composite.getShell() );		this.fontLabel = new Label( composite, SWT.NONE );			fontLabel.setText( labelText );		this.fontButton = new Button( composite, SWT.NONE );			fontButton.setText( "select font" );			fontButton.addSelectionListener(					new SelectionListener() {						public void widgetSelected( SelectionEvent e ) {							fontDialog.open();							font = new Font( null, fontDialog.getFontData() );														fontSample.setFont( font );							fontSample.setSize( fontSample.computeSize( SWT.DEFAULT, SWT.DEFAULT ) );							hasChanged = true;						}						public void widgetDefaultSelected( SelectionEvent e ) {													} } );		this.fontSample = new Label( composite, SWT.SHADOW_NONE );			fontSample.setText( sampleText );						GridData gridData = new GridData();			gridData.horizontalSpan = 1;			gridData.grabExcessHorizontalSpace = true;		fontSample.setLayoutData( gridData );	}