package de.fhswf.in.inf.upnfx; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; /** * This is the starting point for the application. * * @author Stefan Suhren * @version 1.0 */ public class MainApp extends Application { /* * (non-Javadoc) * * @see javafx.application.Application#start(javafx.stage.Stage) */ @Override public void start(Stage primaryStage) { try { AnchorPane apane = FXMLLoader.load(MainApp.class .getResource("view/MainView.fxml")); Scene scene = new Scene(apane); primaryStage.setScene(scene); primaryStage.setTitle("UpnFx"); primaryStage.show(); } catch (Exception e) { e.printStackTrace(); } } /** * The main function. * * @param args * The command line arguments */ public static void main(String[] args) { launch(args); } }