Bug 13661 Labels and widgets too far apart in preference pages
Build: 20020411 Steps: 1. Click on Window->Preferences 2. Open Java->Editor or Java->Compiler The widgets used to select options (Combo boxes or color selection boxes) are right-aligned, and the labels are left aligned, leaving a large space between. This problem is magnified if the user opens a page that is wider than the default width, "stretching" the preference page dialog box. It takes more than a glance for the user to realize which labels line up with which widgets. See the Ant->Console page for an example of a better layout. In Ant->Console, the widgets are aligned, but appear closer to their labels.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CompilerPreferencePage.java
private Composite createComplianceTabContent(Composite folder) {
		GridLayout layout= new GridLayout();
		layout.numColumns= 2;
		Composite complianceComposite= new Composite(folder, SWT.NULL);
		complianceComposite.setLayout(layout);
		String[] values34= new String[] { VERSION_1_3, VERSION_1_4 };
		String[] values34Labels= new String[] {
			JavaUIMessages.getString("CompilerPreferencePage.version13"),  
			JavaUIMessages.getString("CompilerPreferencePage.version14") 
		};
		
		String label= JavaUIMessages.getString("CompilerPreferencePage.compiler_compliance.label"); 
		addComboBox(complianceComposite, label, PREF_COMPLIANCE, values34, values34Labels, 0);	
		label= JavaUIMessages.getString("CompilerPreferencePage.default_settings.label"); 
		addCheckBox(complianceComposite, label, INTR_DEFAULT_COMPLIANCE, new String[] { DEFAULT, USER }, 0);	
		int indent= convertWidthInCharsToPixels(2);
		Control[] otherChildren= complianceComposite.getChildren();	
				
		String[] values14= new String[] { VERSION_1_1, VERSION_1_2, VERSION_1_3, VERSION_1_4 };
		String[] values14Labels= new String[] {
			JavaUIMessages.getString("CompilerPreferencePage.version11"),  
			JavaUIMessages.getString("CompilerPreferencePage.version12"), 
			JavaUIMessages.getString("CompilerPreferencePage.version13"), 
			JavaUIMessages.getString("CompilerPreferencePage.version14") 
		};
		
		label= JavaUIMessages.getString("CompilerPreferencePage.codegen_targetplatform.label"); 
		addComboBox(complianceComposite, label, PREF_CODEGEN_TARGET_PLATFORM, values14, values14Labels, indent);	
		label= JavaUIMessages.getString("CompilerPreferencePage.source_compatibility.label");