Fix Client.java file in maven archetype

This commit is contained in:
Alexey Andreev 2015-10-21 21:47:26 +03:00
parent f3a4d3737b
commit 3f7b142d6e

View File

@ -1,15 +1,11 @@
package ${package};
import org.teavm.dom.browser.Window;
import org.teavm.dom.html.HTMLDocument;
import org.teavm.dom.html.HTMLElement;
import org.teavm.jso.JS;
import org.teavm.jso.dom.html.HTMLDocument;
import org.teavm.jso.dom.html.HTMLElement;
public class Client {
private static Window window = (Window)JS.getGlobal();
private static HTMLDocument document = window.getDocument();
public static void main(String[] args) {
HTMLDocument document = HTMLDocument.current();
HTMLElement div = document.createElement("div");
div.appendChild(document.createTextNode("TeaVM generated element"));
document.getBody().appendChild(div);