}
private static void sayHello() {
helloButton.setDisabled(true);
thinkingPanel.getStyle().setProperty("display", "");
final XMLHttpRequest xhr = window.createXMLHttpRequest();
xhr.setOnReadyStateChange(new ReadyStateChangeHandler() {
@Override public void stateChanged() {
if (xhr.getReadyState() == XMLHttpRequest.DONE) {
receiveResponse(xhr.getResponseText());
}
}
});
xhr.open("GET", "hello");
xhr.send();
}