List of usage examples for javafx.application Application start
public abstract void start(Stage primaryStage) throws Exception;
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"); } }