import converters.JsonConverter;
import datamodel.Request;
import httpserver.RequestSender;
import httpserver.WebServer;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Controller {
    public TextField response;
    private WebServer ws = new WebServer();
    public TextField command;
    @FXML
    public TextArea results;

    public void runCommand(ActionEvent actionEvent) {
        results.setText("");
        response.setText("");
        ws.setResults(results);
        Thread th = new Thread() {
            @Override
            public void run() {
                String commandString = command.getText();

                Request request = new Request();
                request.setClientId("13");
                request.setCommand(commandString);
                request.setResponseAddress("http://localhost:8008/jobFinished");
                request.setProcessors(new String[] {"processors.XmlToJsonConverter","processors.TlsFilter"});
                request.setAdapter("adapters.EventHubAdapter");

                String requestJsonString = JsonConverter.objectToJsonString(request);

                String requestResponse = RequestSender.sendRequest("http://localhost:8000/job", request);
                Platform.runLater(new Runnable() {
                    @Override
                    public void run() {
                        response.setText(requestResponse);
                    }
                });
            }
        };
        th.start();
    }

}

@@ -457,16 +457,96 @@
 sults;%0A%0A
+    @FXML%0A    public void initialize()%7B%0A        ws.setResults(results);%0A    %7D%0A%0A%0A
     publ
@@ -654,40 +654,8 @@
 %22);%0A
-        ws.setResults(results);%0A
     

Initialize set results before button action. The UI client can be used for receiving messages only.