Bug 34122 Control Example
Eclipse 200303062359 RH 8.0 Combo Tab The SWT.BORDER button does not seem accessible. The SWT.READ_ONLY button is only valid when SWT.DROP_DOWN is selected, but it is not disabled when SWT.SIMPLE is selected Dialog Tab Dialog type = message box Button Styles SWT.CANCEL SWT.YES: Dialog opens with ok button. Button Styles SWT.CANCEL SWT.NO: Dialog opens with ok button. Table Tab Select SWT.CHECK: there is a lot of flash when an item is checked
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DialogTab.java
/**
	 * Creates the "Example" group.
	 */
	void createExampleGroup () {
		super.createExampleGroup ();
		
		/*
		 * Create a group for the text widget to display
		 * the results returned by the example dialogs.
		 */
		resultGroup = new Group (exampleGroup, SWT.NONE);
		resultGroup.setLayout (new GridLayout ());
		resultGroup.setLayoutData (new GridData (GridData.FILL_BOTH));
		resultGroup.setText (ControlExample.getResourceString("Dialog_Result"));
	}
	
	/**
	 * Creates the "Example" widgets.
	 */
	void createExampleWidgets () {
		/*
		 * Create a multi lined, scrolled text widget for output.
		 */
		textWidget = new Text(resultGroup, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
		GridData gridData = new GridData (GridData.FILL_BOTH);
		textWidget.setLayoutData (gridData);	
	}
	
	/**
	 * Handle a dialog type combo selection event.