chess/src/main/java/org/apidesign/html/demo/chess/Main.java
author Jaroslav Tulach <jtulach@netbeans.org>
Thu, 25 Jul 2013 15:09:49 +0200
branchchess
changeset 22 fb06534ab8db
permissions -rw-r--r--
Initial version of the chess board displaying application
jtulach@22
     1
/**
jtulach@22
     2
 * The MIT License (MIT)
jtulach@22
     3
 *
jtulach@22
     4
 * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jtulach@22
     5
 *
jtulach@22
     6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
jtulach@22
     7
 * of this software and associated documentation files (the "Software"), to deal
jtulach@22
     8
 * in the Software without restriction, including without limitation the rights
jtulach@22
     9
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
jtulach@22
    10
 * copies of the Software, and to permit persons to whom the Software is
jtulach@22
    11
 * furnished to do so, subject to the following conditions:
jtulach@22
    12
 *
jtulach@22
    13
 * The above copyright notice and this permission notice shall be included in
jtulach@22
    14
 * all copies or substantial portions of the Software.
jtulach@22
    15
 *
jtulach@22
    16
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jtulach@22
    17
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jtulach@22
    18
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jtulach@22
    19
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
jtulach@22
    20
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
jtulach@22
    21
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
jtulach@22
    22
 * THE SOFTWARE.
jtulach@22
    23
 */
jtulach@22
    24
package org.apidesign.html.demo.chess;
jtulach@22
    25
jtulach@22
    26
import net.java.html.boot.BrowserBuilder;
jtulach@22
    27
jtulach@22
    28
public final class Main {
jtulach@22
    29
    private Main() {
jtulach@22
    30
    }
jtulach@22
    31
    
jtulach@22
    32
    public static void main(String... args) throws Exception {
jtulach@22
    33
        BrowserBuilder.newBrowser().
jtulach@22
    34
            loadPage("pages/index.html").
jtulach@22
    35
            loadClass(BoardModel.class).
jtulach@22
    36
            invoke("initialize", args).
jtulach@22
    37
            showAndWait();
jtulach@22
    38
        System.exit(0);
jtulach@22
    39
    }
jtulach@22
    40
}