extStyleList = new List (controls, SWT.V_SCROLL | SWT.MULTI);
extStyleList = new List (controls, SWT.V_SCROLL | SWT.MULTI | SWT.BORDER);
void createControls (Composite parent) {	Composite composite = new Composite (parent, SWT.NONE);	GridLayout layout = new GridLayout ();	layout.numColumns = 2;	composite.setLayout (layout);	Composite controls = new Composite (composite, SWT.NONE);	layout = new GridLayout ();	layout.marginHeight = layout.marginWidth = 0;	layout.numColumns = 3;	controls.setLayout (layout);		// labels row (1)	new Label (controls, SWT.NONE).setText (SWT.getMessage ("SWT_Character_set") + ":");	new Label (controls, SWT.NONE).setText (SWT.getMessage ("SWT_Font") + ":");	new Label (controls, SWT.NONE).setText (SWT.getMessage ("SWT_Extended_style") + ":");		// lists row (2)	charSetList = new List (controls, SWT.V_SCROLL);	GridData gridData = new GridData (GridData.FILL_HORIZONTAL);	gridData.heightHint = LIST_HEIGHT;	gridData.widthHint = LIST_WIDTH;	charSetList.setLayoutData (gridData);	faceNameList = new List (controls, SWT.V_SCROLL);	gridData = new GridData (GridData.FILL_HORIZONTAL);	gridData.heightHint = LIST_HEIGHT;	gridData.widthHint = LIST_WIDTH;	faceNameList.setLayoutData (gridData);	extStyleList = new List (controls, SWT.V_SCROLL | SWT.MULTI);	gridData = new GridData (GridData.FILL_HORIZONTAL);	gridData.heightHint = LIST_HEIGHT;	gridData.widthHint = EXTSTYLE_WIDTH;	extStyleList.setLayoutData (gridData);	// labels row (3)	new Label (controls, SWT.NONE).setText (SWT.getMessage ("SWT_Size") + ":");		new Label (controls, SWT.NONE).setText (SWT.getMessage ("SWT_Style") + ":");	new Label (controls, SWT.NONE);		// filler	// lists row (4)	fontSizeList = new List (controls, SWT.V_SCROLL);	gridData = new GridData (GridData.FILL_HORIZONTAL);	gridData.heightHint = LIST_HEIGHT;	gridData.widthHint = LIST_WIDTH;	fontSizeList.setLayoutData (gridData);	fontStyleList = new List (controls, SWT.V_SCROLL);	gridData = new GridData (GridData.FILL_HORIZONTAL);	gridData.heightHint = LIST_HEIGHT;	gridData.widthHint = LIST_WIDTH;	fontStyleList.setLayoutData (gridData);	new Label (controls, SWT.NONE);		// filler	// font sets group	Group fontSetGroup = new Group (controls, SWT.NONE);	fontSetGroup.setText(SWT.getMessage ("SWT_FontSet"));	layout = new GridLayout ();	layout.numColumns = 2;	fontSetGroup.setLayout (layout);	GridData data = new GridData (GridData.FILL_BOTH);	data.horizontalSpan = 3;	fontSetGroup.setLayoutData (data);	fontSetList = new List (fontSetGroup, SWT.V_SCROLL);	data = new GridData (GridData.FILL_BOTH);	data.grabExcessHorizontalSpace = true;	fontSetList.setLayoutData (data);	Composite buttonsGroup = new Composite (fontSetGroup, SWT.NONE);	layout = new GridLayout ();	layout.numColumns = 3;	layout.makeColumnsEqualWidth = false;	layout.marginHeight = layout.marginWidth = 0;	layout.horizontalSpacing = layout.verticalSpacing = 0; 	buttonsGroup.setLayout (layout);		Composite upDownButtonsGroup = new Composite (buttonsGroup, SWT.NONE);	layout = new GridLayout ();	layout.marginHeight = layout.marginWidth = 0;	layout.horizontalSpacing = layout.verticalSpacing = 0; 	upDownButtonsGroup.setLayout(layout);	int buttonAlignment = GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING;	upButton = new Button (upDownButtonsGroup, SWT.PUSH);	upButton.setLayoutData (new GridData (buttonAlignment));	upButton.setText (SWT.getMessage ("SWT_Up"));	downButton = new Button (upDownButtonsGroup, SWT.PUSH);	downButton.setLayoutData (new GridData (buttonAlignment));	downButton.setText (SWT.getMessage ("SWT_Down"));	new Label (buttonsGroup, SWT.SEPARATOR | SWT.VERTICAL);		Composite newRemoveButtonsGroup = new Composite (buttonsGroup, SWT.NONE);	layout = new GridLayout ();	layout.marginHeight = layout.marginWidth = 0;	layout.horizontalSpacing = layout.verticalSpacing = 0; 	newRemoveButtonsGroup.setLayout(layout);			newButton = new Button (newRemoveButtonsGroup, SWT.PUSH);	newButton.setLayoutData (new GridData (buttonAlignment));	newButton.setText (SWT.getMessage ("SWT_NewFont"));	removeButton = new Button (newRemoveButtonsGroup, SWT.PUSH);	removeButton.setLayoutData (new GridData (buttonAlignment));	removeButton.setText (SWT.getMessage ("SWT_Remove"));		// font sample group	Group sampleGroup = new Group (controls, SWT.NONE);	sampleGroup.setText (SWT.getMessage ("SWT_Sample"));	gridData = new GridData ();	gridData.heightHint = SAMPLE_HEIGHT;		gridData.horizontalSpan = 3;	gridData.horizontalAlignment = GridData.FILL;		sampleGroup.setLayoutData (gridData);	layout = new GridLayout ();	layout.marginWidth = 10;	layout.marginHeight = 10;	sampleGroup.setLayout (layout);		sampleLabel = new Label (sampleGroup, SWT.CENTER);	sampleLabel.setText (TEXT_SAMPLE);	gridData = new GridData ();	gridData.grabExcessHorizontalSpace = true;	gridData.grabExcessVerticalSpace = true;		gridData.verticalAlignment = GridData.FILL;		gridData.horizontalAlignment = GridData.FILL;		sampleLabel.setLayoutData (gridData);		Composite okCancelGroup = new Composite (composite, SWT.NONE);	layout = new GridLayout ();	layout.marginHeight = layout.marginWidth = layout.verticalSpacing = 0;	okCancelGroup.setLayout (layout);	okCancelGroup.setLayoutData (new GridData (GridData.VERTICAL_ALIGN_BEGINNING));	createButtons (okCancelGroup);}