Composite composite_1 = new Composite(shell, SWT.NONE);
composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
composite_1.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));
Button btnOk = new Button(composite_1, SWT.NONE);
btnOk.addMouseListener(new MouseAdapter() {
@Override
public void mouseUp(MouseEvent arg0) {
String name = text_3.getText();
String host = text_4.getText();
String port = text_5.getText();