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
package org.eclipse.swt.examples.controlexample;
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved
 */
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.events.*;
import java.util.ResourceBundle;
/**
 * <code>Tab</code> is the abstract superclass of every page
 * in the example's tab folder.  Each page in the tab folder
 * describes a control.
 *
 * A Tab itself is not a control but instead provides a
 * hierarchy with which to share code that is common to
 * every page in the folder.
 *
 * A typical page in a Tab contains a two column composite.
 * The left column contains the "Example" group.  The right
 * column contains "Control" group.  The "Control" group
 * contains controls that allow the user to interact with
 * the example control.  The "Control" group typically
 * contains a "Style", "Display" and "Size" group.  Subclasses
 * can override these defaults to augment a group or stop
 * a group from being created.
 */
abstract class Tab {