/*
 * Copyright (c) 2017 toastkidjp.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompany this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package jp.toastkid.slideshow;

import java.nio.file.Paths;

import javafx.application.Application;
import javafx.stage.Stage;

/**
 * Simple presentation tool powered by JavaFX.
 *
 * @author Toast kid
 */
public class Main extends Application {

    /** Title of this app. */
    private static final String TITLE = "Slide show";

    @Override
    public void start(final Stage stage) throws Exception {
        stage.setTitle(TITLE);
        new Slideshow.Builder()
            .setSource(Paths.get("sample.md"))
            .setIsFullScreen(false)
            .build()
            .launch();
    }

    /**
     * Main method.
     *
     * @param args
     */
    public static void main(final String[] args) {
        Application.launch(Main.class);
    }
}

/*
 * Copyright (c) 2017 toastkidjp.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompany this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html.
 */
package jp.toastkid.slideshow;

import javafx.application.Application;
import javafx.stage.Stage;

import java.nio.file.Paths;

/**
 * Simple presentation tool powered by JavaFX.
 *
 * @author Toast kid
 */
public class Main extends Application {

    /** Title of this app. */
    private static final String TITLE = "Slide show";

    @Override
    public void start(final Stage stage) throws Exception {
        stage.setTitle(TITLE);
        new Slideshow.Builder()
            .setSource(Paths.get("sample.md"))
            .setIsFullScreen(false)
            .build()
            .launch();
    }

    /**
     * Main method.
     *
     * @param args commandline arguments
     */
    public static void main(final String[] args) {
        Application.launch(Main.class);
    }
}

Add comments.