jtulach@63: /** jtulach@63: * The MIT License (MIT) jtulach@63: * jtulach@63: * Copyright (C) 2013 Jaroslav Tulach jtulach@63: * jtulach@63: * Permission is hereby granted, free of charge, to any person obtaining a copy jtulach@63: * of this software and associated documentation files (the "Software"), to deal jtulach@63: * in the Software without restriction, including without limitation the rights jtulach@63: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell jtulach@63: * copies of the Software, and to permit persons to whom the Software is jtulach@63: * furnished to do so, subject to the following conditions: jtulach@63: * jtulach@63: * The above copyright notice and this permission notice shall be included in jtulach@63: * all copies or substantial portions of the Software. jtulach@63: * jtulach@63: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR jtulach@63: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, jtulach@63: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE jtulach@63: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER jtulach@63: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, jtulach@63: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN jtulach@63: * THE SOFTWARE. jtulach@63: */ jtulach@63: package org.apidesign.demo.minesweeper; jtulach@63: jtulach@63: import net.java.html.boot.BrowserBuilder; jtulach@63: jtulach@63: jtulach@63: /** Bootstrap and initialization. */ jtulach@63: public final class Main { jtulach@63: private Main() { jtulach@63: } jtulach@90: jtulach@63: /** Launches the browser */ jtulach@63: public static void main(String... args) throws Exception { jtulach@63: BrowserBuilder.newBrowser(). jtulach@63: loadPage("pages/index.html"). jtulach@90: loadClass(MinesModel.class). jtulach@90: invoke("main", args). jtulach@63: showAndWait(); jtulach@63: System.exit(0); jtulach@63: } jtulach@63: }