I'm using SWT, on a desktop application, where I'm using a GridLayout splited by 5 columns and one line, there is a tabble using the top of the space and at the bottom I have 3 buttons, I want to put these 3 botton to the right. Basically jump the two first spaces. I tried using:

```
 GridData gridData = new GridData();
 gridData.grabExcessHorizontalSpace = true;
 gridData.horizontalAlignment= GridData.END;
 CompanyGroup.setLayoutData(gridData);

```

But I realized that this method only align inside the column.

```
Composite rightComp = DialogCompositeFactory.create(parent);
rightComp.setLayout(new GridLayout(1, false));
Group CompanyGroup = DialogGroupFactory.create(rightComp,Message));
CompanyGroup.setLayout(new GridLayout(5, true));

```

Like the example below

[![Example](https://i.stack.imgur.com/V1h8s.png)](https://i.stack.imgur.com/V1h8s.png)