public void output(String text, String color) { DivElement div = Document.get().createDivElement(); div.setInnerText(text); div.setAttribute("style", "color:" + color); messages.getElement().appendChild(div); scrollPanel.scrollToBottom(); }