GridData layoutData = new GridData( SWT.FILL, SWT.FILL, true, true );
flightLabel.setLayoutData( layoutData );
}
public ClientDialog createReservationDialog() {
ClientDialog dialog = new ClientDialog();
dialog.setTitle( "Reservation" );
dialog.setMessage( "Do you really want to place\na reservation?" );
dialog.setButton( ButtonType.CANCEL, "No" );
dialog.setButton( ButtonType.OK, "Yes", new Listener() {
@Override
public void handleEvent( Event event ) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append( "First Name: " + firstNameField.getText() + "\n" );