cbStrikethru = new Button( cmpContent, SWT.CHECK ); GridData gdCBStrikethru = new GridData( GridData.FILL_HORIZONTAL ); gdCBStrikethru.horizontalSpan = 2; gdCBStrikethru.heightHint = 20; cbStrikethru.setLayoutData( gdCBStrikethru );
Composite cmpFormat = new Composite( cmpContent, SWT.NONE ); { GridLayout layout = new GridLayout( 2, false ); layout.marginHeight = 0; cmpFormat.setLayout( layout ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 3; cmpFormat.setLayoutData( gd ); }  cbStrikethru = new Button( cmpFormat, SWT.CHECK );
	private void placeComponents( )	{		GridLayout glContent = new GridLayout( );		glContent.verticalSpacing = 5;		glContent.horizontalSpacing = 5;		glContent.marginHeight = 7;		glContent.marginWidth = 7;		glContent.numColumns = 9;		cmpContent = new Composite( shell, SWT.NONE );		cmpContent.setLayout( glContent );		Label lblFont = new Label( cmpContent, SWT.NONE );		GridData gdLFont = new GridData( );		gdLFont.heightHint = 22;		lblFont.setLayoutData( gdLFont );		lblFont.setText( Messages.getString( "FontDefinitionDialog.Lbl.Font" ) ); //$NON-NLS-1$		cmbFontNames = new Combo( cmpContent, SWT.DROP_DOWN | SWT.READ_ONLY );		GridData gdCMBFontNames = new GridData( GridData.FILL_HORIZONTAL );		gdCMBFontNames.horizontalSpan = 8;		cmbFontNames.setLayoutData( gdCMBFontNames );		cmbFontNames.addSelectionListener( this );		Label lblSize = new Label( cmpContent, SWT.NONE );		GridData gdLSize = new GridData( );		gdLSize.heightHint = 22;		lblSize.setLayoutData( gdLSize );		lblSize.setText( Messages.getString( "FontDefinitionDialog.Lbl.Size" ) ); //$NON-NLS-1$		iscFontSizes = new IntegerSpinControl( cmpContent,				SWT.NONE,				ChartUIUtil.getFontSize( fdCurrent ) );		GridData gdISCFontSizes = new GridData( GridData.FILL_HORIZONTAL );		gdISCFontSizes.horizontalSpan = 3;		iscFontSizes.setLayoutData( gdISCFontSizes );		iscFontSizes.setMinimum( MIN_FONT_SIZE );		iscFontSizes.setMaximum( MAX_FONT_SIZE );		iscFontSizes.addListener( this );		Label lblForeground = new Label( cmpContent, SWT.NONE );		GridData gdLForeground = new GridData( );		gdLForeground.horizontalSpan = 2;		lblForeground.setLayoutData( gdLForeground );		lblForeground.setText( Messages.getString( "FontDefinitionDialog.Lbl.Color" ) ); //$NON-NLS-1$		fccColor = new FillChooserComposite( cmpContent,				SWT.NONE,				cdCurrent,				false,				false );		GridData gdFCCColor = new GridData( GridData.FILL_HORIZONTAL );		gdFCCColor.horizontalSpan = 3;		fccColor.setLayoutData( gdFCCColor );		fccColor.addListener( this );		Label lblStyle = new Label( cmpContent, SWT.NONE );		GridData gdLStyle = new GridData( );		gdLStyle.heightHint = 22;		lblStyle.setLayoutData( gdLStyle );		lblStyle.setText( Messages.getString( "FontDefinitionDialog.Lbl.Style" ) ); //$NON-NLS-1$		btnBold = new Button( cmpContent, SWT.TOGGLE );		GridData gdBBold = new GridData( GridData.FILL_HORIZONTAL );		btnBold.setLayoutData( gdBBold );		btnBold.setImage( UIHelper.getImage( "icons/obj16/fnt_style_bold.gif" ) ); //$NON-NLS-1$		btnBold.addSelectionListener( this );		btnBold.setSelection( fdCurrent.isSetBold( ) && fdCurrent.isBold( ) );		btnItalic = new Button( cmpContent, SWT.TOGGLE );		GridData gdBItalic = new GridData( GridData.FILL_HORIZONTAL );		btnItalic.setLayoutData( gdBItalic );		btnItalic.setImage( UIHelper.getImage( "icons/obj16/fnt_style_italic.gif" ) ); //$NON-NLS-1$		btnItalic.addSelectionListener( this );		btnItalic.setSelection( fdCurrent.isSetItalic( )				&& fdCurrent.isItalic( ) );		btnUnderline = new Button( cmpContent, SWT.TOGGLE );		GridData gdBUnderline = new GridData( GridData.FILL_HORIZONTAL );		btnUnderline.setLayoutData( gdBUnderline );		btnUnderline.setImage( UIHelper.getImage( "icons/obj16/fnt_style_underline.gif" ) ); //$NON-NLS-1$		btnUnderline.addSelectionListener( this );		btnUnderline.setSelection( fdCurrent.isSetUnderline( )				&& fdCurrent.isUnderline( ) );		Label lblFormat = new Label( cmpContent, SWT.NONE );		GridData gdLFormat = new GridData( GridData.VERTICAL_ALIGN_FILL );		gdLFormat.horizontalSpan = 2;		gdLFormat.verticalSpan = 2;		lblFormat.setLayoutData( gdLFormat );		lblFormat.setText( Messages.getString( "FontDefinitionDialog.Lbl.Format" ) ); //$NON-NLS-1$		cbStrikethru = new Button( cmpContent, SWT.CHECK );		GridData gdCBStrikethru = new GridData( GridData.FILL_HORIZONTAL );		gdCBStrikethru.horizontalSpan = 2;		gdCBStrikethru.heightHint = 20;		cbStrikethru.setLayoutData( gdCBStrikethru );		cbStrikethru.addSelectionListener( this );		cbStrikethru.setText( Messages.getString( "FontDefinitionDialog.Lbl.Strikethrough" ) ); //$NON-NLS-1$		cbStrikethru.setSelection( fdCurrent.isSetStrikethrough( )				&& fdCurrent.isStrikethrough( ) );		Label lblDummy1 = new Label( cmpContent, SWT.NONE );		GridData gdLDummy1 = new GridData( );		gdLDummy1.horizontalSpan = 6;		lblDummy1.setLayoutData( gdLDummy1 );		cbWrap = new Button( cmpContent, SWT.CHECK );		GridData gdCBWrap = new GridData( GridData.FILL_HORIZONTAL );		gdCBWrap.horizontalSpan = 2;		gdCBWrap.heightHint = 20;		cbWrap.setLayoutData( gdCBWrap );		cbWrap.addSelectionListener( this );		cbWrap.setText( Messages.getString( "FontDefinitionDialog.Lbl.Wrap" ) ); //$NON-NLS-1$		cbWrap.setSelection( fdCurrent.isSetWordWrap( )				&& fdCurrent.isWordWrap( ) );		createRotationPanel( );		createAlignmentPanel( );		FillLayout flPreview = new FillLayout( );		flPreview.marginHeight = 2;		flPreview.marginWidth = 3;		grpPreview = new Group( cmpContent, SWT.NONE );		grpPreview.setText( Messages.getString( "FontDefinitionDialog.Lbl.Preview" ) ); //$NON-NLS-1$		GridData gdGRPPreview = new GridData( GridData.FILL_BOTH );		gdGRPPreview.horizontalSpan = 9;		grpPreview.setLayoutData( gdGRPPreview );		grpPreview.setLayout( flPreview );		fcPreview = new FontCanvas( grpPreview,				SWT.NONE,				fdCurrent,				cdCurrent,				true,				true,				true );		createButtonPanel( );	}