Bug 18733 ControlExample: List widget not being resized properly
Build F1 (and F2 too) Steps: 1) Start ControlExample 2) Choose the "List" tab 3) Click on "Set Font" and choose a smaller font (manually type in a size if necessary -- you need to do this to get anything smaller than 8 pt in Win32) 4) Click on "Preferred" radio button, even though it's already selected 5) Uncheck "SWT.H_SCROLL" 6) Notice that the List widget gets bigger 7) Check "SWT.H_SCROLL" 8) Notice that the List widget gets even bigger
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java
control = control.getParent ();
			}
		}
	}
	
	/**
	 * Sets the state of the "Example" widgets.  Subclasses
	 * reimplement this method to set "Example" widget state
	 * that is specific to the widget.
	 */
	void setExampleWidgetState () {
		setExampleWidgetEnabled ();
		setExampleWidgetVisibility ();
		setExampleWidgetSize ();
		setExampleWidgetBackground ();
		setExampleWidgetForeground ();
		setExampleWidgetFont ();
	}
	
	/**
	 * Sets the visibility of the "Example" widgets.
	 */
	void setExampleWidgetVisibility () {
		Control [] controls = getExampleWidgets ();
		for (int i=0; i<controls.length; i++) {
			controls [i].setVisible (visibleButton.getSelection ());
		}
	}
}