Example usage for javafx.application Application start

List of usage examples for javafx.application Application start

Introduction

In this page you can find the example usage for javafx.application Application start.

Prototype

public abstract void start(Stage primaryStage) throws Exception;

Source Link

Document

The main entry point for all JavaFX applications.

Usage

From source file:com.microsoft.azure.hdinsight.spark.jobs.JobUtils.java

public void openDefaultBrowser(@NotNull final String url) {
    Application application = new Application() {
        @Override/*from  w  w w.jav a2s  .  c o m*/
        public void start(Stage primaryStage) throws Exception {
            getHostServices().showDocument(url);
        }
    };

    try {
        application.start(null);
    } catch (Exception e) {
        DefaultLoader.getUIHelper().showError("Failed to open browser", "Open browser Error");
    }
}