Source:
<code>protected Control createDialogArea(Composite p) { p.getShell().setText(Messages.TmfChartView_LockYAxis); Composite parent = (Composite) super.createDialogArea(p); <START> GridLayout parentLayout = new GridLayout(3, false); <END> parent.setLayout(parentLayout); Range range = fChartViewer.getSwtChart().getAxisSet().getYAxis(0).getRange(); fCheck = new Button(parent, SWT.CHECK); fCheck.setText(Messages.TmfChartView_LockButton); fCheck.setLayoutData(newGridData(3)); fCheck.setSelection(true); fCheck.addSelectionListener(new SelectionListener() { @Override public void widgetSelected(SelectionEvent e) { fMinText.setEnabled(fCheck.getSelection()); fMaxText.setEnabled(fCheck.getSelection()); validateInputs(); } @Override public void widgetDefaultSelected(SelectionEvent e) { } }); Label minLabel = new Label(parent, SWT.RADIO); minLabel.setText(Messages.TmfChartView_LowerYAxisRange); minLabel.setLayoutData(newGridData(1)); fMinText = new Text(parent, SWT.SINGLE | SWT.BORDER); fMinText.setLayoutData(newGridData(2)); fMinText.setText(String.valueOf(range.lower)); fMinText.addModifyListener(fModifyListener); Label maxLabel = new Label(parent, SWT.RADIO); maxLabel.setText(Messages.TmfChartView_UpperYAxisRange); maxLabel.setLayoutData(newGridData(1)); fMaxText = new Text(parent, SWT.SINGLE | SWT.BORDER); fMaxText.setLayoutData(newGridData(2)); fMaxText.setText(String.valueOf(range.upper)); fMaxText.addModifyListener(fModifyListener); return parent; }</code><technical_language>3 columns, is right side a span of 2, this is 2 columns. If intention split width 1/3 2/3, work way, set 'makeColumnsEqualWidth' here. solution. Otherwise, do is 2 columns, left column (labels) grabExcessHorizontalSpace=false right column (texts) grabExcessHorizontalSpace=true</technical_language>

Target:
protected Control createDialogArea(Composite p) { p.getShell().setText(Messages.TmfChartView_LockYAxis); Composite parent = (Composite) super.createDialogArea(p); GridLayout parentLayout = new GridLayout(2, false); parent.setLayout(parentLayout); Range range = fChartViewer.getSwtChart().getAxisSet().getYAxis(0).getRange(); fCheck = new Button(parent, SWT.CHECK); fCheck.setText(Messages.TmfChartView_LockButton); fCheck.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 2, 1)); fCheck.setSelection(true); fCheck.addSelectionListener(new SelectionListener() { @Override public void widgetSelected(SelectionEvent e) { fMinText.setEnabled(fCheck.getSelection()); fMaxText.setEnabled(fCheck.getSelection()); validateInputs(); } @Override public void widgetDefaultSelected(SelectionEvent e) { } }); Label minLabel = new Label(parent, SWT.RADIO); minLabel.setText(Messages.TmfChartView_LowerYAxisRange); minLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false)); fMinText = new Text(parent, SWT.SINGLE | SWT.BORDER); fMinText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); fMinText.setText(String.valueOf(range.lower)); fMinText.addModifyListener(fModifyListener); Label maxLabel = new Label(parent, SWT.RADIO); maxLabel.setText(Messages.TmfChartView_UpperYAxisRange); maxLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false)); fMaxText = new Text(parent, SWT.SINGLE | SWT.BORDER); fMaxText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); fMaxText.setText(String.valueOf(range.upper)); fMaxText.addModifyListener(fModifyListener); return parent; }