/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */ import com.sun.javafx.runtime.VersionInfo; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.BorderPane; import javafx.scene.layout.Pane; import javafx.stage.Stage; /** * * @author cementovoz */ public class JavaApplication15 extends Application { /** * @param args the command line arguments */ @Override public void start(Stage stage) throws Exception { BorderPane root = new BorderPane(); Scene scene = new Scene(root, 300, 300); Pane pane; try { pane = FXMLLoader.load(getClass().getResource("main.fxml")); root.setCenter(pane); } catch (Exception exc) { exc.printStackTrace(); } stage.setScene(scene); stage.show(); stage.setTitle(VersionInfo.getRuntimeVersion()); } public static void main(String[] args) { launch(args); } }