        Button button1 = new Button(shell, SWT.PUSH);
        button1.setText("OK");
        Button button2 = new Button(shell, SWT.PUSH);
        button2.setText("Cancel");

        final int insetX = 4, insetY = 4;
        FormLayout formLayout = new FormLayout();
        formLayout.marginWidth = insetX;
        formLayout.marginHeight = insetY;
        shell.setLayout(formLayout);